Every controller action call go through the certain events events. Some of the methods I have listed below.
1) Initialize
Executed at the beginning of action call.
protected override void Initialize(RequestContext requestContext)
{
}
2) On Authorization
Executed at the time of authorizing the action call
protected override void OnAuthorization(AuthorizationContext filterContext)
{
}
1) On Action Executing
Executed at the time of executing the action just after authorization.
protected override void OnActionExecuting(ActionExecutingContext filterContext)
{
}
Executed at the time of executing the action just after authorization.
protected override void OnActionExecuting(ActionExecutingContext filterContext)
{
}