Define Types of Action Filters |
1. Authorization filters Implements the IAuthorizationFilter attribute. This filter is always executed first. 2. Action filters Implements the IActionFilter attribute. You can use this filter to modify the viewdata that an action returns. 3. Result filters Implements the IResultFilter attribute. Eg You might want to modify the view result before view is redered to the browser. 4. Exception filters Implements the IExceptionFilter attribute. Can be used to log errors, raised by your controller action or controller action results. |