Allow both query OR route model binding with ASP.NET Core Web API
I’ve got an HttpGet
on an API method with primitive parameters and would like to provide the option of passing parameters via the query OR route. I’ve just trashed half a day building various custom binders and such trying to figure this out to no avail.