Answers for "restful api paramater - ASP.NET core MVC"

C#
0

restful api paramater - ASP.NET core MVC

<a asp-controller="Speaker"
   asp-action="Detail" 
   asp-route-id="@Model.SpeakerId">SpeakerId: @Model.SpeakerId</a>
   
-- Result --
     
<a href="/Speaker/Detail/12">SpeakerId: 12</a>

-- lưu ý là asp router id => /{id} => paramater => restful api = /:id
Posted by: Guest on May-24-2021

C# Answers by Framework

Browse Popular Code Answers by Language