private static NavigationBuilder BuildMenuScenario1()
        {
            NavigationBuilder navigationBuilder = new NavigationBuilder();
            navigationBuilder.Add(new LocalizedString("X"), "0",
                menu => menu
                    .Add(new LocalizedString("A"), "0", subMenu => subMenu.Action("Index", "Admin", new { area = "Area" })
                        .Add(new LocalizedString("B"), "0", item => item.Action("Index", "Admin", new { area = "Area" }))
                        .Add(new LocalizedString("C"), "1", item => item.Action("Index", "Admin", new { area = "Area" }).LocalNav())))
                    .Add(new LocalizedString("D"), "1", subMenu => subMenu.Action("Index", "Admin", new { area = "Area" }).LocalNav()
                        .Add(new LocalizedString("E"), "0", item => item.Action("Index", "Admin", new { area = "Area" }))
                        .Add(new LocalizedString("F"), "1", item => item.Action("Index", "Admin", new { area = "Area" }).LocalNav()));

            return navigationBuilder;
        }
 public void GetNavigation(NavigationBuilder builder)
 {
     builder.Add(T("Users"),
         menu => menu.Add(T("Roles"), "2.0", item => item.Action("Index", "Admin", new { area = "Coevery.Roles" })
             .LocalNav().Permission(StandardPermissions.SiteOwner)));
 }
        private static NavigationBuilder BuildMenuScenario2()
        {
            NavigationBuilder navigationBuilder = new NavigationBuilder();
            navigationBuilder.Add(new LocalizedString("X"), "0",
                menu => menu
                    .Add(new LocalizedString("A"), "0", item => item.Action(SecondLevel1Action, "Admin", new { area = "Area" }))
                    .Add(new LocalizedString("B"), "1",
                        subMenu => subMenu
                            .Add(new LocalizedString("C"), "0", item => item.Action(ThirdLevel1Action, "Admin", new { area = "Area" }).LocalNav())
                            .Add(new LocalizedString("D"), "1",
                                subSubMenu => subSubMenu.LocalNav()
                                    .Add(new LocalizedString("E"), "0", item => item.Action(FourthLevel1Action, "Admin", new { area = "Area" }).LocalNav())
                                    .Add(new LocalizedString("F"), "1", item => item.Action(FourthLevel2Action, "Admin", new { area = "Area" }).LocalNav())
                                    .Add(new LocalizedString("G"), "2", item => item.Action(FourthLevel3Action, "Admin", new { area = "Area" }))
                                    .Add(new LocalizedString("W"), "3", item => item.Action(FourthLevel4Action, "Admin", new { area = "Area" })))));

            return navigationBuilder;
        }
 public void GetNavigation(NavigationBuilder builder)
 {
     var T = NullLocalizer.Instance;
     builder
         .Add(new LocalizedString("Foo", "", "Foo", null), "1.0", x => x.Action("foo"))
         .Add(new LocalizedString("Bar", "", "Bar", null), "2.0", x => x.Add(new LocalizedString("Frap", "", "Frap", null), "1.b"));
 }