Esempio n. 1
0
        public virtual ActionResult TopMenu()
        {
            var model = new MenuModel();

            model.Menu = _menuBiz.Get(MenuLocation.Top);
            if (model.Menu.EnableCategory && model.Menu.EnableCategory)
            {
                model.Categories = _categoryBusiness.CatsByViewMode_Cache(120, Mn.NewsCms.Common.Share.ViewMode.Menu, Mn.NewsCms.Common.Share.ViewMode.MenuIndex).ToList();
                model.Categories = model.Categories.OrderByDescending(x => x.Priority).ToList();
            }

            return(PartialView("Navigation/_TopMenu." + CmsConfig.ThemeName, model));
        }