Hi Kmcnet-3080,
Asp.net Core MVC contains the route parameter feature to avoid show the querystring like "ClientID=1234&Category=Correspondences".
We called it friendly url in the webform.
For example:
This is our route:
app.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
This is the controller:
public class ProductsController : Controller
{
public IActionResult Details(int id)
{
return ControllerContext.MyDisplayRouteInfo(id);
}
}
When the user use this url /Products/Details/5 to access the method, the id will be 5, when the client use this url.