public PartialViewResult IndexAdmin()
        {
            var model = new SideBarNavViewModel
            {
                MainMenu = AsyncHelper.RunSync(() => _userNavigationManager.GetMenuAsync("MainMenu", AbpSession.ToUserIdentifier()))
            };

            return(PartialView("IndexAdmin", model));
        }
Beispiel #2
0
        public PartialViewResult SideBarNav(string activeMenu = "")
        {
            var model = new SideBarNavViewModel
            {
                MainMenu           = AsyncHelper.RunSync(() => _userNavigationManager.GetMenuAsync("MainMenu", AbpSession.ToUserIdentifier())),
                ActiveMenuItemName = activeMenu
            };

            return(PartialView("_SideBarNav", model));
        }
        public JsonResult MainNav(string activeMenu = "")
        {
            var model = new SideBarNavViewModel
            {
                MainMenu           = AsyncHelper.RunSync(() => _userNavigationManager.GetMenuAsync("MainMenu", AbpSession.ToUserIdentifier())),
                ActiveMenuItemName = activeMenu
            };

            return(AbpJson(model, behavior: JsonRequestBehavior.AllowGet));
        }
        public async Task <IViewComponentResult> InvokeAsync(string activeMenu = "")
        {
            var model = new SideBarNavViewModel
            {
                MainMenu           = await _userNavigationManager.GetMenuAsync("MainMenu", _abpSession.ToUserIdentifier()),
                ActiveMenuItemName = activeMenu
            };

            return(View(model));
        }
Beispiel #5
0
        protected async Task <SideBarNavViewModel> GetUserMenu(string activeMenu = "")
        {
            var model = new SideBarNavViewModel
            {
                MainMenu           = await _userNavigationManager.GetMenuAsync("MainMenu", AbpSession.ToUserIdentifier()),
                ActiveMenuItemName = activeMenu
            };

            return(model);
        }