public sealed class CustomCheckAttribute : ActionFilterAttribute { public override void OnActionExecuting(ActionExecutingContext filterContext) { var request = filterContext.HttpContext.Request; var response = filterContext.HttpContext.Response; //validation goes here if (request["LoginId"] != null) { ... } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)