To learn more about the new exciting Asp.Net-5 framework, I\'m trying to build a web application using the newly released Visual Studio 2015 CTP-6.
Most things looks
in asp.net core, You can use Context.Request.Headers.
bool isAjaxCall = Context.Request.Headers["x-requested-with"]=="XMLHttpRequest"