//返回401
ContentResult Content = new ContentResult();
Content.StatusCode = 401;
filterContext.Result = Content;
//跳转页面
filterContext.Result = new RedirectResult("/home/Login" + "/");
//IsAjax
filterContext.HttpContext.Request.Headers.Keys.Contains("X-Requested-With");