public ActionResult NavigationSubmenu() { string action = ControllerContext.ParentActionViewContext.RouteData.Values["action"].ToString(); string controller = ControllerContext.ParentActionViewContext.RouteData.Values["controller"].ToString(); var menuItems = NavigationHelper.GetSubnavigationItemsForController(controller); if ((menuItems == null) || (menuItems.Count == 0)) { return(new EmptyResult()); } NavigationHelper.ApplySubmenuSelection(menuItems, controller, action); return(PartialView("_NavigationSubmenu", menuItems)); }