Monday 10 August 2015

Action Filter

There are 4 events available in an action filter.
  1. OnActionExecuting - Runs before execution of Action method.
  2. OnActionExecuted - Runs after execution of Action method.
  3. OnResultExecuting - Runs before content is rendered to View.
  4. OnResultExecuted - Runs after content is rendered to view.
We can also implement a CustomActionFilter by inherting ActionFilterAttribute class

No comments:

Post a Comment