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)); }
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)); }
public async Task <IViewComponentResult> InvokeAsync() { var menu = await _menuManager.GetAsync(StandardMenus.Main); return(View("~/Themes/Metronic/Components/Menu/Default.cshtml", menu)); }
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)); }
public async Task <IViewComponentResult> InvokeAsync() { var menu = await _menuManager.GetAsync(StandardMenus.Main); return(View(menu)); }
public async System.Threading.Tasks.Task <IViewComponentResult> InvokeAsync() { var menu = await _menuManager.GetAsync(StandardMenus.Main); return(View("~/Themes/AdminLTE/Components/MainSideBar/Default.cshtml", menu)); }
public async Task <IViewComponentResult> InvokeAsync(string menuName = StandardMenus.Main, string viewName = "Default") { var menu = await _menuManager.GetAsync(StandardMenus.Main); return(View(viewName, menu)); }