I have this web api method:
[HttpGet]
[Route(\"WorkPlanList/{clientsId}/{date:datetime}\")]
public async Task
Custom model binding is one option. But easier would be to pass the values in the request body rather than in the URI.
As best practice, complex data should not be present in the URI. So workaround in your case would be to :
create a JSON array and include it in the request body.
write [FromBody]
before List
, which will force the framework to retrieve the data from request body. Model binding will happen automatically.