Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

What {area:exists} does ?

$
0
0

app.UseMvc(routes =>
{
// Areas support
routes.MapRoute(
name: "areaRoute",
template: "{area:exists}/{controller=Home}/{action=Index}/{id?}");
routes.MapRoute(
name: "default",
template: "{controller=Home}/{action=Index}/{id?}");
});


What {area:exists} does ?

in older version there was no {area:exists} so when people enter wrong controller and action name then error screen comes.

so i like to know what is special significance of {area:exists}


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>