Beispiel #1
0
        public PartialViewResult ChildMenuPartial(int parentId)
        {
            var childMenus = new MenusModel().getChildMenus(parentId);

            ViewBag.childCount = childMenus.Count();
            ViewBag.childMenus = childMenus;
            return(PartialView("ChildMenuPartial"));
        }
        public PartialViewResult GrandchildrenPartial(int parentId)
        {
            var Grandchildren = new MenusModel().getLeftChildMenus(parentId);

            ViewBag.categoryId         = parentId;
            ViewBag.GrandchildrenCount = Grandchildren.Count();
            ViewBag.Grandchildren      = Grandchildren;
            return(PartialView("GrandchildrenPartial"));
        }
        public PartialViewResult ChildMenuMobilePartial(int parentId)
        {
            var ChildMenuMobile = new MenusModel().getLeftChildMenus(parentId);

            ViewBag.categoryId           = parentId;
            ViewBag.ChildMenuMobileCount = ChildMenuMobile.Count();
            ViewBag.ChildMenuMobile      = ChildMenuMobile;
            return(PartialView("ChildMenuMobilePartial"));
        }
        // GET: Menu
        public PartialViewResult LeftChildMenusPartial(int parentId)
        {
            var leftChildMenus = new MenusModel().getLeftChildMenus(parentId);

            ViewBag.categoryId         = parentId;
            ViewBag.leftChildMenuCount = leftChildMenus.Count();
            ViewBag.leftChildMenus     = leftChildMenus;
            return(PartialView("LeftChildMenusPartial"));
        }