Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

How to apply two Action Filters

$
0
0

Hi,

I'm using Action Filter on Controller level. A class implementing ActionFilterAttribute has some logic for OnActionExecuting which must b called always. I have created another class implementing ActionFilterAttribute. In that we have OnActionExecuted which must be executed only for ActionMethods with Annotation [ActivityLog]. But, i see that the Action Filter on Controller level takes preference. I want to always execute OnActionExecuting and selectively execute OnActionExecuted. How to do this.

Please suggest some solution.


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>