public override void RegisterArea(AreaRegistrationContext context) { BeforeRegisterArea(context); RouteExtensions.MapRouteEx(context, SchwabenCode.Samples.ASPMVC5_Google2WayAuthentication.Routing.RouteNames.AccountArea.Account_Login, "Account/Login", new { Controller = "Account", Action = "Login" }, null, new [] { "SchwabenCode.Samples.ASPMVC5_Google2WayAuthentication.Areas.Account.Controllers" }, "Account", forceTrailingSlash: false); RouteExtensions.MapRouteEx(context, SchwabenCode.Samples.ASPMVC5_Google2WayAuthentication.Routing.RouteNames.AccountArea.Account, "Account", new { Controller = "Account", Action = "Index" }, null, new [] { "SchwabenCode.Samples.ASPMVC5_Google2WayAuthentication.Areas.Account.Controllers" }, "Account", forceTrailingSlash: false); AfterRegisterArea(context); }
/// <summary> /// Call this method on application start. /// </summary> public static void Register(RouteCollection routeCollection) { RouteExtensions.MapRouteEx(routeCollection, SchwabenCode.Samples.ASPMVC5_Google2WayAuthentication.Routing.RouteNames.Home, "", new { Controller = "Home", Action = "Index" }, null, new [] { "SchwabenCode.Samples.ASPMVC5_Google2WayAuthentication.Controllers" }, forceTrailingSlash: false); }