public ActionResult Create() { LayoutServices layoutServices = new LayoutServices(); var layouts = layoutServices.GetAll(); var pages = pageServices.GetAll(); ViewBag.LayoutId = new SelectList(layouts, "Id", "Name"); ViewBag.ParentPageId = new SelectList(pages, "Id", "Name"); return(View()); }
public LayoutController() { layoutServices = new LayoutServices(); }
public PageController() { pageServices = new PageServices(); layoutServices = new LayoutServices(); }