How can i make my user routes in mvc with core 2? Early, in just ASP.NET i used:
context.MapRoute(
"index",
"index",
defaults: new
{
area = "AnoterArea",
controller = "Base",
action = "Index"
});
But now what should i do? Im trying to do something like..
app.UseMvc(routes =>
{
routes.MapAreaRoute(
"index",
"Index",
"{controller}/{action}/{id?}",
new
{
controller ="Base",
action = "Index"
});
});
What do you say?