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)); }
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)); }
public ActionResult Index() { var result = _linksManager.Get(); return(Json(result)); }