Required query string parameters in ASP.NET Core MVC

added by DotNetKicks
9/19/2016 3:29:25 PM

2 Kicks, 2312 Views

Today let's have a look at two extensibility points in ASP.NET Core MVC - IActionConstraint and IParameterModelConvention. We'll see how we can utilize them to solve a problem, that is not handled out of the box by the framework - creating an MVC action that has mandatory query string parameters.