I am having a hard time wrapping my head around custom routing in MVC Core. I get that I need to add something here in Startup
app.UseMvc(routes =>
{
routes.MapRoute(
name: "default",
template: "{controller=Home}/{action=Index}/{id?}");
});
But how am I supposed to get a controller to function properly? I basically need a data details view to pull up using a string instead of an id. So "string url" instead of "int id".
I read some articles online but everything I tried seemed to fail. Thanks in advance.