Ejemplo n.º 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));
 }
Ejemplo n.º 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));
 }