Custom Model Binder in Asp.Net Core Web API (Example -2) | ASP.NET Core 5.0 Web API Tutorial

preview_player
Показать описание
Asp.Net Core Web API 5.0 Tutorial

===================================
===================================

▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Follow us on
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬

Popular free courses from WebGentle
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Рекомендации по теме
Комментарии
Автор

excellent explanation of the model binder.

uzoruchenna
Автор

Why dont we get the ID value simply using Request.RouteValues as below?

var data =
var result1 = data["id"];

rameshk
Автор

This was a good explanation thank you. Why would you want to use a custom model binder in this scenario, rather than just pass in an integer of the id, then look up the data?

MZ-uvsr