skip to Main Content

asp-route-id always pass id as query parmeter – Asp.net

I'm trying pass id as route parameter by asp-route-id always pass as a query parameter and I don't want to use href <a asp-area="Employe" asp-controller="PersonManager" asp-action="UserDetails" asp-route-id="@Model.Provider.Id">details</a> the route is like this https://localhost:5002/Employe/PersonManager/UserDetails?id=b4065ff6-c7bd-4244-a6b6-9bc6b7b4c7a8 but I want be like this https://localhost:5002/Employe/PersonManager/UserDetails/b4065ff6-c7bd-4244-a6b6-9bc6b7b4c7a8…

VIEW QUESTION
Back To Top
Search