Actionfilterattribute Mvc 5. Crete a custom action filter. What are filters in mvc.
That approach is completely hostile to di. There are different types of filters available in mvc. I can t use older version.
Action filters are attributes which inherit from the actionfilterattribute class provided by net and can execute either before or after a decorated action or before after every action in a controller and modify how the action is handled.
Follow edited may 23 17 at 12 09. This class is abstract which forces you to provide an implementation. Don t let microsoft s marketing of actionfilterattribute fool you. There are different types of filters available in mvc.