which approach is best to add routes in .net
i have try this
reference of the below code is – https://www.c-sharpcorner.com/article/routing-in-asp-net-core/
app.UseRouting();
app.UseEndpoints(endpoints =>
{
endpoints.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");
});
you guys have any other approach to define the routes
New contributor
Rohan Sharma is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.