Customizing ASP.NET Core Part 8: ModelBinders

In the last post about OutputFormatters I wrote about sending data out to the clients in different formats. In this post, we are going to do it the other way. This post is about data you get into your Web API from outside. What if you get data in a special format or what if you get data you need to validate in a special way. ModelBinders will help you handle this.
About ModelBinders
ModelBinders are responsible for binding incoming data to specific action method parameters. It binds the data sent with the request to the parameters. The default binders are able to bind data that are sent via the QueryString or sent within the request body. Within the body, the data can be sent in URL format or JSON.

Link: https://dzone.com/articles/customizing-aspnet-core-part-8-modelbinders?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev