public async Task <IViewComponentResult> InvokeAsync()
        {
            var menu = await _menuManager.GetAsync(StandardMenus.Main);

            if (!PageLayout.Content.MenuItemName.IsNullOrEmpty())
            {
                SetActiveMenuItems(menu.Items, PageLayout.Content.MenuItemName);
            }
            return(View("~/Themes/AdminLTE/Components/Menu/Default.cshtml", menu));
        }
예제 #2
0
        public async Task <IViewComponentResult> InvokeAsync()
        {
            string queryString = Request.QueryString.HasValue ? Request.QueryString.Value : string.Empty;
            var    pageUrl     = $"{ RouteData.Values["page"]}{queryString}";

            var menu = await _menuManager.GetAsync(StandardMenus.Main);

            SetMenuItemActivateCssClass(pageUrl.ToString(), parentMenu: menu);

            return(View("~/Themes/AdminLTE/Components/Menu/Default.cshtml", menu));
        }
        public async Task <IViewComponentResult> InvokeAsync()
        {
            var menu = await _menuManager.GetAsync(StandardMenus.User);

            return(View("~/Themes/Uplon/Components/Toolbar/UserMenu/Default.cshtml", menu));
        }
예제 #4
0
        public async Task <IViewComponentResult> InvokeAsync()
        {
            var menu = await _menuManager.GetAsync(StandardMenus.Main);

            return(View("~/Themes/Metronic/Components/Menu/Default.cshtml", menu));
        }
예제 #5
0
        public async Task <ActionResult> Details(int id)
        {
            var model = await _menu.GetAsync(id);

            return(PartialView(model));
        }
        public async Task <IViewComponentResult> InvokeAsync()
        {
            var sideMenu = await _menuManager.GetAsync(SideNavBarMenus.LeftSideMenu);

            return(View("~/Themes/Uplon/Components/SideNavBar/Default.cshtml", sideMenu));
        }
예제 #7
0
        public async Task <IViewComponentResult> InvokeAsync()
        {
            var menu = await _menuManager.GetAsync(StandardMenus.Main);

            return(View(menu));
        }
예제 #8
0
        public async System.Threading.Tasks.Task <IViewComponentResult> InvokeAsync()
        {
            var menu = await _menuManager.GetAsync(StandardMenus.Main);

            return(View("~/Themes/AdminLTE/Components/MainSideBar/Default.cshtml", menu));
        }
예제 #9
0
        public async Task <IViewComponentResult> InvokeAsync(string menuName = StandardMenus.Main, string viewName = "Default")
        {
            var menu = await _menuManager.GetAsync(StandardMenus.Main);

            return(View(viewName, menu));
        }