Using an IActionFilter to read action method parameter values in ASP.NET Core MVC

added by DotNetKicks
4/17/2018 10:19:51 AM

3 Kicks, 209 Views

In this post I shown how you can use an IActionFilter in ASP.NET Core MVC to read the method parameters for an action method before it executes. I'll show two different approaches to solve the problem, depending on your requirements.