Beispiel #1
0
 public ActionResult Create(SPageModel model)
 {
     if (ModelState.IsValid)
     {
         using (PageContext context = new PageContext())
         {
             context.AddPage(HttpSession.CurrentSiteID, model);
         }
         return(RedirectToAction("Index"));
     }
     return(ReturnView(model));
 }
Beispiel #2
0
 public ActionResult Create(SPageModel model)
 {
     if (ModelState.IsValid)
     {
         using (PageContext context = new PageContext())
         {
             context.AddPage(HttpSession.CurrentSiteID, model);
         }
         return(RedirectToAction("Index"));
     }
     ViewBag.EditPageTypes = true;
     return(View("NewEditTinymce", model));
 }