What is filter in MVC and Its types?

In this post, we will learn about Filter and its type for ASP.Net MVC 4.0 and 5.0. Filter is used to implement extra logic to perform any task after and before executing the action exception, authorization etc.

What is MVC?

MVC stands for Model View Controller. Model: where we define classes as model including objects, Properties. Properties holds the values to be displayed or inserted.

Routing in MVC

Its a process of redirecting an HTTP Request to the controller and action. Or we can say ASP.Net Routing is a pattern system that is responsible for mapping coming request to specified controller and action in pattern.