Пример #1
0
        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());
        }
Пример #2
0
 public LayoutController()
 {
     layoutServices = new LayoutServices();
 }
Пример #3
0
 public PageController()
 {
     pageServices   = new PageServices();
     layoutServices = new LayoutServices();
 }