Building Custom Action Filters in ASP.NET MVC
ASP.NET MVC gives you a clean separation of concerns — but sometimes, you’ll need to execute certain logic before or after a controller action runs. For example: Instead of repeating the same code in every controller, Action Filters let you inject that behavior globally, per controller, or per action. In this post, we’ll explore what … Read more