I have area and in that area I have Home/Index
that contains Authorize
attribute.
What is the proper way to make this action default for my application.
So when user type:
mysite.com
to open Home/Index
Code in areaRegistration.cs
context.MapRoute(
"CityPage_default",
"CityPage/{controller}/{action}/{id}",
new { controller="Home", action = "Index", id = UrlParameter.Optional }
);