Example #1
0
 public override void RegisterArea(AreaRegistrationContext context)
 {
     context.MapSubDomainRoute(
         name: "Area1_default",
         subdomain: "subdomain1",
         // Note that "Area1" is *not* in the route url
         url: "{controller}/{action}/{id}",
         defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
         );
 }