---
title: "What are Action Filters in MVC?"  
description: "What are Action Filters in MVC?"  
author: "Manish Kumar"  
published: 2017-05-10  
updated: 2020-09-14  
canonical: https://www.mindstick.com/interview/23242/what-are-action-filters-in-mvc  
category: "c#"  
tags: ["mvc4"]  
reading_time: 2 minutes  

---

# What are Action Filters in MVC?

It is an attribute that can be applied in the controller. It tell that which the action execution is done. Action Filters are additional attributes that can be applied to either a controller section or the entire controller to modify the way in which action is executed. It is derivied from System.Attribute.

**There are four type of filter that support asp.net MVC**

**1-Authorization filter** **–** It implements IAuthorization attribute. It contain the logic for authentication for controller action.

**2-Action Filter****-** It implements IActionFilter attribute. It contain the logic that is executed before and after control action executes.

**3-Result Filter****-I**t implements IResult attribute. It contain the logic that is executed before and after the view result execution.

**4-Exeception Filter****-**It implants IException attribute. It contain the logic for handle error it executes at the last of all filter.

## Answers

### Answer by Manish Kumar

It is an attribute that can be applied in the controller. It tell that which the action execution is done. Action Filters are additional attributes that can be applied to either a controller section or the entire controller to modify the way in which action is executed. It is derivied from System.Attribute.

**There are four type of filter that support asp.net MVC**

**1-Authorization filter** **–** It implements IAuthorization attribute. It contain the logic for authentication for controller action.

**2-Action Filter****-** It implements IActionFilter attribute. It contain the logic that is executed before and after control action executes.

**3-Result Filter****-I**t implements IResult attribute. It contain the logic that is executed before and after the view result execution.

**4-Exeception Filter****-**It implants IException attribute. It contain the logic for handle error it executes at the last of all filter.


---

Original Source: https://www.mindstick.com/interview/23242/what-are-action-filters-in-mvc

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
