public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute<CoordinatorController>("Create", c => c.Create()); routes.MapNavigationRoute<CoordinatorController>("History", c => c.History(0, 20)); routes.MapNavigationRoute("API", "api", "api"); routes.MapNavigationRoute<HomeController>("Configuration", c => c.Configuration()); }
public static void RegisterRoutes(RouteCollection routes) { // this enables menu suppression for routes with a FilterToken of "admin" set NavigationRouteFilters.Filters.Add(new AdministrationRouteFilter()); routes.MapNavigationRoute<HomeController>("Automatic Scaffolding", c => c.Index(), "", new NavigationRouteOptions {HasBreakAfter = true}); // this route will only show if users are in the role specified in the AdministrationRouteFilter // by default, when you run the site, you will not see this. Explore the AdministrationRouteFilter // class for more information. routes.MapNavigationRoute<HomeController>("Administration Menu", c => c.Admin(), "", new NavigationRouteOptions { HasBreakAfter = true, FilterToken = "admin"}); routes.MapNavigationRoute<ExampleLayoutsController>("Bootstrap Layouts", c => c.Null()) .AddChildRoute<ExampleLayoutsController>("Marketing", c => c.Marketing()) .AddChildRoute<ExampleLayoutsController>("Fluid", c => c.Fluid(), new NavigationRouteOptions{ HasBreakAfter = true}) .AddChildRoute<ExampleLayoutsController>("Sign In", c => c.SignIn()); routes.MapNavigationRoute<GridController>("JS Grids", c => c.Null()) .AddChildRoute<GridController>("jqGrid", c => c.JQGrid()) .AddChildRoute<GridController>("DataTables", c => c.DataTable()) .AddChildRoute<GridController>("SlickGrid", c => c.SlickGrid()); routes.MapNavigationRoute<FrameworkController>("JS Frameworks", c => c.Null()) .AddChildRoute<FrameworkController>("AngularJS", c => c.AngularJS()) .AddChildRoute<FrameworkController>("KnockoutJS", c => c.KnockoutJS()); }
public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } ); routes.MapNavigationRoute <HomeController>("Home", c => c.Index()); routes.MapNavigationRoute <AppsController>("Browse", c => c.Search("", 1, null, null, null, null, null, null, null, SortOrder.Desc)); routes.MapNavigationRoute <StatsController>("Statistics", c => c.Index()) .AddChildRoute <StatsController>("Apps", c => c.Apps()) .AddChildRoute <StatsController>("Developers", c => c.Developers()) ; routes.MapRoute( "Http404", "{*url}", defaults: new { controller = "Errors", action = "Http404", id = UrlParameter.Optional }); }
public static void RegisterRoutes(RouteCollection routes) { // this enables menu suppression for routes with a FilterToken of "admin" set NavigationRouteFilters.Filters.Add(new AdministrationRouteFilter()); routes.MapNavigationRoute <HomeController>("Automatic Scaffolding", c => c.Index(), "", new NavigationRouteOptions { HasBreakAfter = true }); // this route will only show if users are in the role specified in the AdministrationRouteFilter // by default, when you run the site, you will not see this. Explore the AdministrationRouteFilter // class for more information. routes.MapNavigationRoute <HomeController>("Administration Menu", c => c.Admin(), "", new NavigationRouteOptions { HasBreakAfter = true, FilterToken = "admin" }); routes.MapNavigationRoute <ExampleLayoutsController>("Example Layouts", c => c.Starter()) .AddChildRoute <ExampleLayoutsController>("Marketing", c => c.Marketing()) .AddChildRoute <ExampleLayoutsController>("Fluid", c => c.Fluid(), new NavigationRouteOptions { HasBreakAfter = true }) .AddChildRoute <ExampleLayoutsController>("Sign In", c => c.SignIn()) ; }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute<HomeController>("Home", c => c.Index(), ""); routes.MapNavigationRoute<HomeController>("About", c => c.About(), ""); routes.MapNavigationRoute<HomeController>("Contact", c => c.Contact(), ""); /* //routes.MapNavigationRoute("" // this enables menu suppression for routes with a FilterToken of "admin" set // NavigationRoutes.NavigationRoutes.Filters.Add(new AdministrationRouteFilter()); routes.MapNavigationRoute<HomeController>("Automatic Scaffolding", c => c.Index(), "", new {HasBreakAfter = true}); // this route will only show if users are in the role specified in the AdministrationRouteFilter // by default, when you run the site, you will not see this. Explore the AdministrationRouteFilter // class for more information. routes.MapNavigationRoute<HomeController>("Administration Menu", c => c.Admin(), "", new { HasBreakAfter = true, FilterToken = "admin"}); routes.MapNavigationRoute<ExampleLayoutsController>("Example Layouts", c => c.Starter()) .AddChildRoute<ExampleLayoutsController>("Marketing", c => c.Marketing()) .AddChildRoute<ExampleLayoutsController>("Fluid", c => c.Fluid(), new NavigationRouteOptions{ HasBreakAfter = true}) .AddChildRoute<ExampleLayoutsController>("Sign In", c => c.SignIn()) ;*/ }
public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } ); //routes.MapNavigationRoute<ExampleLayoutsController>("Bootstrap Layouts", c => c.Starter()) // .AddChildRoute<ExampleLayoutsController>("Marketing", c => c.Marketing()) // .AddChildRoute<ExampleLayoutsController>("Fluid", c => c.Fluid()) // .AddChildRoute<ExampleLayoutsController>("Sign In", c => c.SignIn()) // ; //routes.MapNavigationRoute<HomeController>("Home", c => c.Index()) // .AddChildRoute<AccountController>("Sign In", c => c.Login("home/index")) // .AddChildRoute<HomeController>("About", c => c.About()) // ; //routes.MapNavigationRoute<HomeController>("Manage", c => c.Index()) // .AddChildRoute<ChannelsController>("Channels", c => c.Index()) // .AddChildRoute<BroadcastsController>("Broadcasts", c => c.Index()); routes.MapNavigationRoute<BroadcastsController>("My Broadcasts", c => c.IndexMy()); routes.MapNavigationRoute<ChannelsController>("Channels", c => c.Index()); routes.MapNavigationRoute<BroadcastsController>("Broadcasts", c => c.Index()); routes.MapNavigationRoute<UserInfoesController>("Users", c => c.Index()); }
public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapNavigationRoute("Home", "", new {controller = "Home", action = "Index"}); routes.MapNavigationRoute("About", "about", new {controller = "Home", action = "About"}); routes.MapNavigationRoute("Contact", "contact", new {controller = "Home", action = "Contact"}); }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute<HomeController>("Home", c => c.Index()); routes.MapNavigationRoute<PersonController>("People", c => c.Null()) .AddChildRoute<PersonController>("View All", c => c.Index()) .AddChildRoute<PersonController>("Create New", c => c.Create()); }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute<HomeController>("Home", c => c.Index()); routes.MapNavigationRoute<AdminController>("Admin", c => c.Details(Guid.NewGuid())) .AddChildRoute<AdminController>("List Recipes", c => c.Index()) .AddChildRoute<AdminController>("Create Recipe", c => c.Create(null)); }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute<DiskController>("My Disk", c => c.Index()); routes.MapNavigationRoute<AccountController>("Profile", c => c.Index()) .AddChildRoute<AccountController>("Sign Out", c => c.LogOut()) ; }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute<HomeController>("Best Days", c => c.BestDays()); routes.MapNavigationRoute<HomeController>("Cities", c => c.Cities()); routes.MapNavigationRoute<HomeController>("Mobile", c => c.TopLocal()); routes.MapNavigationRoute<HomeController>("Blog", c => c.Contact()); routes.MapNavigationRoute<HomeController>("Team", c => c.About()); }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute("Blog-navigation", "Blog", "blog", new { controller = "Blog", action = "Index" }); foreach (var pageMetadata in PagesMetadata.Instance.List) { routes.MapNavigationRoute("Page-navigation-" + pageMetadata.Slug, pageMetadata.Title, pageMetadata.Slug, new { controller = "Page", action = "GetPage" }); } }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute <HomeController>("Home", c => c.Index()); routes.MapNavigationRoute <AdminController>("Admin", c => c.Details(Guid.NewGuid())) .AddChildRoute <AdminController>("List Recipes", c => c.Index()) .AddChildRoute <AdminController>("Create Recipe", c => c.Create(null)); }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute <HomeController>("首页", c => c.Index()); routes.MapNavigationRoute <ExampleLayoutsController>("Admin", c => c.Starter()) .AddChildRoute <UserController>("个人设置", c => c.Setting()) .AddChildRoute <UserController>("密码修改", c => c.Password()) .AddChildRoute <UserController>("退出登录", c => c.LogOff()) ; }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute<HomeController>("Automatic Scaffolding", c => c.Index()); routes.MapNavigationRoute<ExampleLayoutsController>("Example Layouts", c => c.Starter()) .AddChildRoute<ExampleLayoutsController>("Marketing", c => c.Marketing()) .AddChildRoute<ExampleLayoutsController>("Fluid", c => c.Fluid()) .AddChildRoute<ExampleLayoutsController>("Sign In", c => c.SignIn()) ; }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute<AccountController>("Inicio", c => c.LogIn()); routes.MapNavigationRoute<ExampleLayoutsController>("Perfil", c => c.Starter()) .AddChildRoute<DiskController>("Lista Archivos", c => c.ListAllContent()) .AddChildRoute<AccountController>("Editar Perfil", c => c.UpdateProfile()) .AddChildRoute<AccountController>("Referral a friend", c => c.Referral()) ; }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute<SmsAndEmailController>("Create", c => c.Create()); routes.MapNavigationRoute<CoordinatorController>("History", c => c.History(0, 20)); // routes.MapNavigationRoute<CoordinatorController>("Create", c => c.Create()); // routes.MapNavigationRoute<CoordinatorController>("History", c => c.History(0, 20)); routes.MapNavigationRoute("API", "api", "api"); routes.MapNavigationRoute<CommunicationTemplateController>("Templates", c => c.Index()); routes.MapNavigationRoute<HomeController>("Configuration", c => c.Configuration()); }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute<HomeController>("首页", c => c.Index()); routes.MapNavigationRoute<ExampleLayoutsController>("Admin", c => c.Starter()) .AddChildRoute<UserController>("个人设置", c => c.Setting()) .AddChildRoute<UserController>("密码修改", c => c.Password()) .AddChildRoute<UserController>("退出登录", c => c.LogOff()) ; }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute <HomeController>("Automatic Scaffolding", c => c.Index()); routes.MapNavigationRoute <ExampleLayoutsController>("Example Layouts", c => c.Starter()) .AddChildRoute <ExampleLayoutsController>("Marketing", c => c.Marketing()) .AddChildRoute <ExampleLayoutsController>("Fluid", c => c.Fluid()) .AddChildRoute <ExampleLayoutsController>("Sign In", c => c.SignIn()) ; }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute <SmsAndEmailController>("Create", c => c.Create()); routes.MapNavigationRoute <CoordinatorController>("History", c => c.History(0, 20)); // routes.MapNavigationRoute<CoordinatorController>("Create", c => c.Create()); // routes.MapNavigationRoute<CoordinatorController>("History", c => c.History(0, 20)); routes.MapNavigationRoute("API", "api", "api"); routes.MapNavigationRoute <CommunicationTemplateController>("Templates", c => c.Index()); routes.MapNavigationRoute <HomeController>("Configuration", c => c.Configuration()); }
public void produce_a_proper_url_for_home_about() { var routes = new RouteCollection(); routes.MapNavigationRoute<HomeController>("Home", c => c.Index()); routes.MapNavigationRoute<HomeController>("Home", c => c.About()); var helper = new HtmlHelper(new TestViewContext(), new TestViewDataContainer(), routes); var result = helper.NavigationListItemRouteLink(routes["Navigation-Home-About"] as NamedRoute).ToString(); result.ShouldContain("href=\"/home/about\""); }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute<HomeController>("Home", c => c.Index()); routes.MapNavigationRoute<PersonController>("People", c => c.Index()); //routes.MapNavigationRoute<ExampleLayoutsController>("Example Layouts", c => c.Starter()) // .AddChildRoute<ExampleLayoutsController>("Marketing", c => c.Marketing()) // .AddChildRoute<ExampleLayoutsController>("Fluid", c => c.Fluid()) // .AddChildRoute<ExampleLayoutsController>("Sign In", c => c.SignIn()) // ; }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute<PropertiesController>("Search", c => c.ListProperties()) .AddChildRoute<AccountController>("Search Profile", c => c.SearchProfile()) .AddChildRoute<PropertiesController>("Search for Property", ctx => ctx.SearchProperty()); routes.MapNavigationRoute<AccountController>("Account", c =>c.Index()) .AddChildRoute<AccountController>("My Profile", c => c.MyProfile()) .AddChildRoute<AccountController>("Sign out", c => c.LogOut()); ; }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute<HomeController>("Home Dashboard", c => c.Index()); routes.MapNavigationRoute<RenterController>("Tenants", c => c.Index()); routes.MapNavigationRoute<ExampleLayoutsController>("Example Layouts", c => c.Starter()) .AddChildRoute<ExampleLayoutsController>("Marketing", c => c.Marketing()) .AddChildRoute<ExampleLayoutsController>("Fluid", c => c.Fluid()) .AddChildRoute<ExampleLayoutsController>("Sign In", c => c.SignIn()) ; }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute<HomeController>("About", c => c.About()); routes.MapNavigationRoute<HomeController>("Contact", c => c.Contact()); routes.MapNavigationRoute<HomeController>("js experiments", c => c.JsSamples()); routes.MapNavigationRoute<ExampleLayoutsController>("Bootstrap Example Layouts", c => c.Starter()) .AddChildRoute<ExampleLayoutsController>("Marketing", c => c.Marketing()) .AddChildRoute<ExampleLayoutsController>("Fluid", c => c.Fluid()) .AddChildRoute<ExampleLayoutsController>("Sign In", c => c.SignIn()) ; }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute<SendNowController>("Send Now", c => c.Create()); routes.MapNavigationRoute<ScheduleController>("Schedule", c => c.Create()); routes.MapNavigationRoute<CoordinatorController> ("Coordinate", c => c.Index()) .AddChildRoute<CoordinatorController>("Create", c => c.Create()) .AddChildRoute<CoordinatorController>("History", c => c.History(0, 20)); routes.MapNavigationRoute<HomeController>("Configuration", c => c.Configuration()) .AddChildRoute<TwilioConfigController>("Twilio", t => t.Details()) .AddChildRoute<MailgunConfigController>("Mailgun", m => m.Details()) .AddChildRoute<DefaultEmailController>("Email Notifications", e => e.Details()); }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute<AccountController>("All Users", c => c.Index()); routes.MapNavigationRoute<AccountController>("Create User", c => c.Create()); routes.MapNavigationRoute<AccountController>("Logout", c => c.LogOut()); /*routes.MapNavigationRoute<ExampleLayoutsController>("Example Layouts", c => c.Starter()) .AddChildRoute<ExampleLayoutsController>("Marketing", c => c.Marketing()) .AddChildRoute<ExampleLayoutsController>("Fluid", c => c.Fluid()) .AddChildRoute<ExampleLayoutsController>("Sign In", c => c.SignIn()) ;*/ }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute <StartPageController>("Start", c => c.Index()); routes.MapNavigationRoute<HomeController>("Register Payment", c => c.Index()); routes.MapNavigationRoute<OverviewController>("Overview", c => c.IndexHelper()); //routes.MapNavigationRoute<HomeController>("Register Payments", c => c.IndexAsync()); //routes.MapNavigationRoute<ExampleLayoutsController>("Example Layouts", c => c.Starter()) // .AddChildRoute<ExampleLayoutsController>("Marketing", c => c.Marketing()) // .AddChildRoute<ExampleLayoutsController>("Fluid", c => c.Fluid()) // .AddChildRoute<ExampleLayoutsController>("Sign In", c => c.SignIn()) // ; }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute<HomeController>("Home", c => c.Index()); routes.MapNavigationRoute<HomeController>("Gallery", c => c.Gallery()); //routes.MapNavigationRoute<HomeController>("Contact", c => c.Contact()); //routes.MapNavigationRoute<ExampleLayoutsController>("Example Layouts", c => c.Starter()) // .AddChildRoute<ExampleLayoutsController>("Marketing", c => c.Marketing()) // .AddChildRoute<ExampleLayoutsController>("Fluid", c => c.Fluid()) // .AddChildRoute<ExampleLayoutsController>("Carousel", c => c.Carousel()) // .AddChildRoute<ExampleLayoutsController>("Sign In", c => c.SignIn()) // .AddChildRoute<ExampleLayoutsController>("Sticky Footer", c => c.StickyFooter()); }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute<HomeController>("Home", c => c.Index()); //routes.MapNavigationRoute<ExampleLayoutsController>("Example Layouts", c => c.Starter()) // .AddChildRoute<ExampleLayoutsController>("Marketing", c => c.Marketing()) // .AddChildRoute<ExampleLayoutsController>("Fluid", c => c.Fluid()) // .AddChildRoute<ExampleLayoutsController>("Sign In", c => c.SignIn()) ; routes.MapNavigationRoute<TaxiController>("Quản lý taxi", c => c.Index(new TaxiCriteria() { })) //.AddChildRoute<TaxiController>("Quản lý taxi", c => c.Index(new TaxiCriteria() { })) ; }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute<HomeController>("Home", c => c.Index()); routes.MapNavigationRoute<JobController>("Jobs", c => c.Index(0)) .AddChildRoute<JobController>("Latest", c => c.Latest()) .AddChildRoute<ApiProgramController>("Queue New", c => c.QueueJob((long?)null), "api"); routes.MapNavigationRoute<RunController>("Join the Swarm", c => c.Index()); routes.MapNavigationRoute<RunDiagnosticsController>("Diagnostics", c => c.Nullo()) .AddChildRoute<RunDiagnosticsController>("Runs", c => c.Index(),"utils") .AddChildRoute<ClientDetectionController>("Client", c => c.Index(), "utils"); }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute<HomeController>("Мероприятия", c => c.Index()); routes.MapNavigationRoute<HomeController>("Команды", c => c.Teams()); routes.MapNavigationRoute<HomeController>("Спортсмены", c => c.Sportsmans()); routes.MapNavigationRoute<ExampleLayoutsController>("Админка", c => c.Starter()) .AddChildRoute<EventController>("Мероприятия", c => c.Index()) .AddChildRoute<TeamController>("Команды", c => c.Index()) .AddChildRoute<SportsmanController>("Спортсмены", c => c.Index()) .AddChildRoute<LocationController>("Адреса", c => c.Index()) .AddChildRoute<SportController>("Виды спорта", c => c.Index()) .AddChildRoute<CountryController>("Страны", c => c.Index()) ; }
public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapNavigationRoute<TweetController>("Tweets", c => c.Index()); routes.MapNavigationRoute<AccountController>("Log in", a => a.Login(string.Empty)); routes.MapRoute("Home", "Home", new { controller = "Home", action = "Index" }); routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } ); }
public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapNavigationRoute("Home-navigation", "Home", "", new { controller = "Home", action = "Index" }); //This is the second Navigation route // RouteName DisplayName Url Defaults routes.MapNavigationRoute("About-navigation", "About", "about", new { controller = "Home", action = "About" }); routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } ); }
/// <summary> /// Registers any routes to be used by the routing system. /// </summary> /// <param name="routes">The collection of routes to add to.</param> public void RegisterRoutes(RouteCollection routes) { #region Bootstrap sample routes.MapNavigationRoute<HomeController>("Automatic Scaffolding", c => c.Index()); routes.MapNavigationRoute<ExampleLayoutsController>("Example Layouts", c => c.Starter()) .AddChildRoute<ExampleLayoutsController>("Marketing", c => c.Marketing()) .AddChildRoute<ExampleLayoutsController>("Fluid", c => c.Fluid()) .AddChildRoute<ExampleLayoutsController>("Sign In", c => c.SignIn()); #endregion #region Accounts #endregion routes.MapRoute("Default", "{controller}/{action}", new { controller = "Home", action = "Index" }); }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute<AccessController>("Access Pages", c => c.Index()) .AddChildRoute<AccessController>("Need Permission 1", c => c.Permission1()) .AddChildRoute<AccessController>("Need Permission 2", c => c.Permission2()) .AddChildRoute<AccessController>("Need Permission 3", c => c.Permission3()); }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute <AccessController>("Access Pages", c => c.Index()) .AddChildRoute <AccessController>("Need Permission 1", c => c.Permission1()) .AddChildRoute <AccessController>("Need Permission 2", c => c.Permission2()) .AddChildRoute <AccessController>("Need Permission 3", c => c.Permission3()); }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute<HomeController>("快速通道", c => c.Empty(), includedInNav: true) .AddChildRoute<HomeController>("主页", c => c.Index(), includedInNav: true) .AddChildRoute<HomeController>("关于", c => c.About(), includedInNav: true) .AddChildRoute<HomeController>("功能", c => c.Features(), includedInNav: true); routes.MapNavigationRoute<AccountController>("帐户", c => c.Empty(), includedInNav: true) .AddChildRoute<AccountController>("帐户设置", c => c.ShowProfile(), includedInNav: true) .AddChildRoute<AccountController>("更改密码", c => c.Manage(null as AccountController.ManageMessageId?), includedInNav: true) .AddChildRoute<AccountController>("登录", c => c.Login("")) .AddChildRoute<AccountController>("注册", c => c.Register()); routes.MapNavigationRoute<UserMgrController>("用户管理", c => c.Index()) .AddChildRoute<UserMgrController>("删除用户", c => c.Delete(0)); routes.MapNavigationRoute<UserGroupMgrController>("用户组管理", c => c.Details(0)) .AddChildRoute<UserGroupMgrController>("添加用户组", c => c.Create()) .AddChildRoute<UserGroupMgrController>("删除用户组", c => c.Delete(0)) .AddChildRoute<UserGroupMgrController>("查看用户组", c => c.Index()) .AddChildRoute<UserGroupMgrController>("编辑用户组", c => c.Edit(0)); routes.MapNavigationRoute<LogController>("日志管理", c => null) .AddChildRoute<LogController>("查看日志", c => c.Index()); routes.MapNavigationRoute<QuestionMgrController>("试题管理", c => c.Details(0)) .AddChildRoute<QuestionMgrController>("添加试题", c => c.Create()) .AddChildRoute<QuestionMgrController>("删除试题", c => c.Delete(0)) .AddChildRoute<QuestionMgrController>("查看试题", c => c.Index()) .AddChildRoute<QuestionMgrController>("编辑试题", c => c.Edit(0)); routes.MapNavigationRoute<PaperMgrController>("试卷管理", c => c.Details(0)) .AddChildRoute<PaperMgrController>("添加试卷", c => c.Create()) .AddChildRoute<PaperMgrController>("删除试卷", c => c.Delete(0)) .AddChildRoute<PaperMgrController>("查看试卷", c => c.Index()) .AddChildRoute<PaperMgrController>("编辑试卷", c => c.Edit(0)); routes.MapNavigationRoute<PaperMgrController>("试卷反馈", c => null) .AddChildRoute<PaperMgrController>("试卷反馈", c => null); routes.MapNavigationRoute<QuestionVerifyController>("试题审核", c => null) .AddChildRoute<QuestionVerifyController>("未审试题", c => c.Index()); routes.MapNavigationRoute<PaperVerifyController>("试卷审核", c => null) .AddChildRoute<PaperVerifyController>("未审试卷", c => c.Index()); }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute <ExampleLayoutsController>("Options", c => c.Starter()) .AddChildRoute <AccountProfileController>("View Profile", c => c.Profile()) .AddChildRoute <DiskController>("My Files", c => c.ListAllContentRoot()) .AddChildRoute <ChangePasswordController>("Change Password", p => p.ChangePassword()) .AddChildRoute <AccountController>("Log Out", a => a.LogOut()); }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute <HomeController>("快速通道", c => c.Empty(), includedInNav: true) .AddChildRoute <HomeController>("主页", c => c.Index(), includedInNav: true) .AddChildRoute <HomeController>("关于", c => c.About(), includedInNav: true) .AddChildRoute <HomeController>("功能", c => c.Features(), includedInNav: true); routes.MapNavigationRoute <AccountController>("帐户", c => c.Empty(), includedInNav: true) .AddChildRoute <AccountController>("帐户设置", c => c.ShowProfile(), includedInNav: true) .AddChildRoute <AccountController>("更改密码", c => c.Manage(null as AccountController.ManageMessageId?), includedInNav: true) .AddChildRoute <AccountController>("登录", c => c.Login("")) .AddChildRoute <AccountController>("注册", c => c.Register()); routes.MapNavigationRoute <UserMgrController>("用户管理", c => c.Index()) .AddChildRoute <UserMgrController>("删除用户", c => c.Delete(0)); routes.MapNavigationRoute <UserGroupMgrController>("用户组管理", c => c.Details(0)) .AddChildRoute <UserGroupMgrController>("添加用户组", c => c.Create()) .AddChildRoute <UserGroupMgrController>("删除用户组", c => c.Delete(0)) .AddChildRoute <UserGroupMgrController>("查看用户组", c => c.Index()) .AddChildRoute <UserGroupMgrController>("编辑用户组", c => c.Edit(0)); routes.MapNavigationRoute <LogController>("日志管理", c => null) .AddChildRoute <LogController>("查看日志", c => c.Index()); routes.MapNavigationRoute <QuestionMgrController>("试题管理", c => c.Details(0)) .AddChildRoute <QuestionMgrController>("添加试题", c => c.Create()) .AddChildRoute <QuestionMgrController>("删除试题", c => c.Delete(0)) .AddChildRoute <QuestionMgrController>("查看试题", c => c.Index()) .AddChildRoute <QuestionMgrController>("编辑试题", c => c.Edit(0)); routes.MapNavigationRoute <PaperMgrController>("试卷管理", c => c.Details(0)) .AddChildRoute <PaperMgrController>("添加试卷", c => c.Create()) .AddChildRoute <PaperMgrController>("删除试卷", c => c.Delete(0)) .AddChildRoute <PaperMgrController>("查看试卷", c => c.Index()) .AddChildRoute <PaperMgrController>("编辑试卷", c => c.Edit(0)); routes.MapNavigationRoute <PaperMgrController>("试卷反馈", c => null) .AddChildRoute <PaperMgrController>("试卷反馈", c => null); routes.MapNavigationRoute <QuestionVerifyController>("试题审核", c => null) .AddChildRoute <QuestionVerifyController>("未审试题", c => c.Index()); routes.MapNavigationRoute <PaperVerifyController>("试卷审核", c => null) .AddChildRoute <PaperVerifyController>("未审试卷", c => c.Index()); }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute <KataController>("Kata Pages", c => c.Index()) .AddChildRoute <KataController>("The Tweets", c => c.TheTweets("newrelic")) .AddChildRoute <KataController>("The Loop", c => c.TheLoop()) .AddChildRoute <KataController>("The Leak", c => c.TheLeak()) .AddChildRoute <KataController>("The Prime", c => c.ThePrime(500)) .AddChildRoute <KataController>("The Query", c => c.TheQuery()) .AddChildRoute <KataController>("The Request", c => c.TheRequest()) .AddChildRoute <KataController>("The Connection", c => c.TheConnection()) ; routes.MapNavigationRoute <AboutController>("About", c => c.Index()) .AddChildRoute <AboutController>("This Kata", c => c.Kata()) .AddChildRoute <AboutController>("New Relic", c => c.NewRelic()) .AddChildRoute <AboutController>("Windows Azure", c => c.WindowsAzure()) ; }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute <MakesController>("Make Management", c => c.Edit(0)) .AddChildRoute <MakesController>("Makes Listing", c => c.Index()) .AddChildRoute <MakesController>("Create Makes", c => c.Create()); routes.MapNavigationRoute <CartridgesController>("Cartridge Management", c => c.Edit(0)) .AddChildRoute <CartridgesController>("Cartridges Listing", c => c.Index()) .AddChildRoute <CartridgesController>("Create Cartridges", c => c.Create()); routes.MapNavigationRoute <ClientsController>("Clients Management", c => c.Edit(0)) .AddChildRoute <ClientsController>("Clients Listing", c => c.Index()) .AddChildRoute <ClientsController>("Create Clients", c => c.Create()); routes.MapNavigationRoute <TasksController>("Tasks Management", c => c.Edit(0)) .AddChildRoute <TasksController>("Tasks Listing", c => c.Index()) .AddChildRoute <TasksController>("Create Tasks", c => c.Create()); }
public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Page", action = "Home", id = UrlParameter.Optional } ); routes.MapNavigationRoute <PageController>("About", c => c.About()); routes.MapNavigationRoute <PageController>("Music & Videos", c => c.Media()); routes.MapNavigationRoute <PageController>("Upcoming Events", c => c.UpcomingEvents()); routes.MapNavigationRoute <PageController>("Booking", c => c.Booking()); }
public static void RegisterRoutes(RouteCollection routes) { //routes.MapNavigationRoute<HomeController>("Automatic Scaffolding", c => c.Index()); routes.MapNavigationRoute <ExampleLayoutsController>("Configuracion", c => c.Starter()) .AddChildRoute <DepartamentosController>("Departamentos", c => c.Index()) .AddChildRoute <EmpleadosController>("Empleados", c => c.Index()) //.AddChildRoute<ExampleLayoutsController>("Sign In", c => c.SignIn()) ; }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute <HomeController>("Admin", c => c.Index()) .AddChildRoute <DemoController>("Map", c => c.Map()); //routes.MapNavigationRoute<ExampleLayoutsController>("Example Layouts", c => c.Starter()) // .AddChildRoute<ExampleLayoutsController>("Marketing", c => c.Marketing()) // .AddChildRoute<ExampleLayoutsController>("Fluid", c => c.Fluid()) // .AddChildRoute<ExampleLayoutsController>("Sign In", c => c.SignIn()) // ; }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute <HomeController>("Modules", c => c.Index()) .AddChildRoute <ProductionController>("Production", c => c.Index()) .AddChildRoute <DowntimeController>("Downtime", c => c.Index()) .AddChildRoute <MetricsController>("Metrics", c => c.Index()) .AddChildRoute <QualityController>("Quality", c => c.Index()) .AddChildRoute <PlanningController>("Planning", c => c.Index()) .AddChildRoute <KnowledgeController>("Knowledge", c => c.Index()) .AddChildRoute <MaintenanceController>("Maintenance", c => c.Index()) .AddChildRoute <EnergyController>("Energy", c => c.Index()); }
public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); //NavigationRouteFilters.Filters.Add(new AdministrationRouteFilter()); routes.MapNavigationRoute("Home", "Домашняя страница", "", new { controller = "Home", action = "Index" }); //var n = new NavigationRouteOptions { HasBreakAfter = true }; routes.MapNavigationRoute("Users", "Пользователи", "Users", new { controller = "Users", action = "Index" }); routes.MapNavigationRoute("Wallets", "Кошельки", "Wallets", new { controller = "Wallets", action = "Index" }); routes.MapNavigationRoute("Accounts", "Счета", "Accounts", new { controller = "Accounts", action = "Index" }); routes.MapNavigationRoute("About", "О программе", "About", new { controller = "Home", action = "About" }); routes.MapNavigationRoute("Contacts", "Контакты", "Contact", new { controller = "Home", action = "Contact" }); // this route will only show if users are in the role specified in the AdministrationRouteFilter // by default, when you run the site, you will not see this. Explore the AdministrationRouteFilter // class for more information. //routes.MapNavigationRoute<HomeController>("Administration Menu", c => c.Admin(), "", // new NavigationRouteOptions { HasBreakAfter = true, FilterToken = "admin" }); routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Wallets", action = "Index", id = UrlParameter.Optional } ); }
public static void RegisterRoutes(RouteCollection routes) { //routes.MapNavigationRoute<HomeController>("Automatic Scaffolding", c => c.Index()); //routes.MapNavigationRoute<ExampleLayoutsController>("Example Layouts", c => c.Starter()) // .AddChildRoute<ExampleLayoutsController>("Marketing", c => c.Marketing()) // .AddChildRoute<ExampleLayoutsController>("Fluid", c => c.Fluid()) // .AddChildRoute<ExampleLayoutsController>("Sign In", c => c.SignIn()) // ; routes.MapNavigationRoute <ExampleLayoutsController>("Options", c => c.Starter()) .AddChildRoute <AccountProfileController>("View Profile", c => c.Profile()) .AddChildRoute <DiskController>("My Files", c => c.ListAllContentRoot()) .AddChildRoute <ChangePasswordController>("Change Password", p => p.ChangePassword()) .AddChildRoute <ReferralInviteController>("Refer a friend", c => c.ReferralInvite()) .AddChildRoute <PackageListController>("Buy more space", c => c.Marketing()) .AddChildRoute <PackageListController>("Purchases", c => c.RecibosVentas()) .AddChildRoute <BitacoraController>("Activities", e => e.Actividades()) .AddChildRoute <AccountController>("Log Out", a => a.LogOut()); }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute <HomeController>("Home", c => c.Index()); //routes.MapNavigationRoute<ExampleLayoutsController>("Example Layouts", c => c.Starter()) // .AddChildRoute<ExampleLayoutsController>("Marketing", c => c.Marketing()) // .AddChildRoute<ExampleLayoutsController>("Fluid", c => c.Fluid()) // .AddChildRoute<ExampleLayoutsController>("Sign In", c => c.SignIn()) // ; routes.MapNavigationRoute <HomeController>("Training", c => c.Training()); routes.MapNavigationRoute <HomeController>("Statistics", c => c.Statistic()); routes.MapNavigationRoute <HomeController>("Friends", c => c.Friends()); routes.MapNavigationRoute <HomeController>("Calendar", c => c.Calendar()); routes.MapNavigationRoute <HomeController>("Competitions", c => c.Competitions()); //routes.MapNavigationRoute<HomeController>("About", c => c.Competitions()); //routes.MapNavigationRoute<HomeController>("Contact Us", c => c.Competitions()); }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute <HomeController>("Boards", c => c.Index()); }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute <HomeController>("Home", c => c.Index()); routes.MapNavigationRoute <BookingCentralController>("Reservations", c => c.Index()); }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute <HomeController>("Contact", c => c.Contact()); routes.MapNavigationRoute <HomeController>("About", c => c.About()); }
public static void RegisterRoutes(RouteCollection routes) { routes.MapNavigationRoute <HomeController>("Automatic Scaffolding", c => c.Index()); }