I have an MVC5 website with a few areas in it. Each area has its own set of controllers and obviously every controller has a default Index.cshtml as landing page. So far so good.
But how do I go about implementing a landing page for an Area? I don't think there can be a landing page for an area independent of the controllers, so perhaps I would need to use sort of an area Home controller that would volunteer a landing page.
The thing is that I want an URL like this to work:
http://www.domain.exe/AreaN/
currently that does not work unless I make it like this:
http//www.domain.exe/AreaN/Controller/
at this point my Area registration route looks like this
context.MapRoute(
"AreaN_default",
"AreaN/{controller}/{action}/{id}",
new { action = "Index", id = UrlParameter.Optional },
new string[] { "Namespace" }
);