In ASP.NET MVC, an Action Filter consists of logic that runs directly before or directly after a Controller action method runs. Custom Action Filters can be used for logging, authentication, output caching, or other tasks.
ASP.NET MVC supports the following types of action filters:
- Authorization filters
- Action filters
- Result filters
- Exception filters