public ActionResult InsertDefault(int sectionId)
        {
            var model = new ContentItemViewModel();

            ViewBag.Previous = "SECTION";
            model.SectionId  = sectionId;
            model.Type       = ContentItemsType.DEFAULT.ToString();

            var resultLinks = _linksManager.Get();
            var ienumResult = (IEnumerable <LinkEntity>)resultLinks.Entity;

            model.Links     = ienumResult.ToList();
            model.Operation = "I";
            return(View("InsertEditDefault", model));
        }
示例#2
0
        public ActionResult Edit(string menuType)
        {
            var model = new MenuViewModel();

            ViewBag.Menus    = _menuManager.GetByType(menuType).Entity as IEnumerable <MenuEntity>;
            ViewBag.MenuType = menuType;

            var resultLinks = _linksManager.Get();
            var ienumResult = (IEnumerable <LinkEntity>)resultLinks.Entity;

            model.Links = ienumResult.ToList();
            return(View("Edit", model));
        }
示例#3
0
        public ActionResult Index()
        {
            var result = _linksManager.Get();

            return(Json(result));
        }