示例#1
0
        public ActionResult NavigationMenu()
        {
            var navigationMenu = new NavigationMenu();

            string action     = ControllerContext.ParentActionViewContext.RouteData.Values["action"].ToString();
            string controller = ControllerContext.ParentActionViewContext.RouteData.Values["controller"].ToString();

            NavigationHelper.ApplySelection(navigationMenu.NavigationMenuItems, controller, action);

            return(PartialView("_NavigationMenu", navigationMenu.NavigationMenuItems));
        }