In ASP.Net MVC, a filter executes before or after executing an action method. Basically, Filter in MVC is a custom class where we can write some of our own logic which will execute before or after action method. MVC offers 4 types of Filters. 1. Authorization Filters 2. Action Filters 3. Result Filters 4. Exception Filters 1. Authorization Filters Implements IAuthorizationFilter interface
This post first appeared on SharePointCafe.Net - A Technical Blog On SharePoint, ASP.Net, Cloud Computing, please read the originial post: here