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