Hello,
I've been doing a bit of research regarding action filters and wondered if there was a way to add them programmatically to controllers??
To give some context, I'd like to add a logging filter if logging is configured in the web.config, otherwise I don't want the filter to exist in the execution chain of each action method.
I appreciate I can put a check in the actual filter code itself to see if logging is enabled but don't want to have to do this is possible.
Many thanks!