Filters are used to perform logic either before an action method is called or after an action method runs. Filters are custom classes that provide both a declarative and programmatic means to add pre-action and post-action behaviour to controller action methods. Prior to ASP.NET MVC 5, there are 4 types of filters: Authorization filters (IAuthorizationFilter)…
