PreviousNext

New Filter Overrides feature in ASP.NET MVC 5 and ASP.NET Web API 2

by bill-s, 2013-09-28T08:05:15.000Z

ASP.NET MVC 5 and ASP.NET Web API 2 added a very important feature called Filter Overrides. A good definition of filter overrides is available in release notes, "You can now override which filters apply to a given action method or controller, by specifying an override filter. Override filters specify a set of filter types that should not run for a given scope (action or controller). This allows you to add global filters, but then exclude some from specific actions or controllers". In this quick article, I will tell you the problem that filter overrides is trying to solve (with an example). I will also show you a quick fix of a bug that I found in ASP.NET MVC 5 regarding filter overrides.

Read More