Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

1 vote
1 answer
4k views

MVC - Pass custom parameters to a custom action filter

My solution contains class library project as business library, and I have written a custom action filter in it. public class SampleFilterAttribute : ActionFilterAttribute, IExceptionFilter { ...
hotcoder's user avatar
  • 3,216
1 vote
2 answers
1k views

How to specify MVC controller/action for a filter/attribute in a class library?

I would be very interested to hear if there is a better way of implementing the following. I don't want to create complex or unmaintainable code. I am creating a class library which will be ...
tekiegirl's user avatar
  • 1,265