Parameter binding

Parameter binding is all about converting contents in an HTTP request to .NET objects so that values can be provided to action method parameters. Without parameter binding support, developers will have to write lots of error-prone and tedious code in action methods to retrieve parameter values from raw HTTP requests.

Input parameters are typically embedded in an HTTP request in URI as query strings, or in the body of the request. Web API uses a technique called Model Binding to read parameter values from the query string, and uses Formatters to read from the request body.

Model binding

If you are familiar with ASP.NET MVC, then you'll find that it's the same Model Binding concept being used in Web API for reading values from ...

Get Building Mobile Applications Using Kendo UI Mobile and ASP.NET Web API now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.