I’m building an ASP.NET Web API REST service.
The calls (URLs) I have to process are fixed by another party and have numerous query string parameters.
Rather than have my controller take a dozen parameters, is there any way that I can map the query parameters to an object and pass that through to the controller?
I know that I could access them within the controller through GetQueryNameValuePairs, but I was wondering if there was a way to use data binding in this fashion.
ASP.NET Web API seems to require the use of the [FromUri] when passing a model object to a controller. For example:
See this MSDN blog post for more details.