public ActionResult Save(SectionContentParagraph content) { if (!ModelState.IsValid) { return(View("Form", content)); } if (content.ActionType == ActionType.Create) { _sectionContentProviderService.Add(content); } else { _sectionContentProviderService.Update(content); } ViewBag.Close = true; return(View("Form", content)); }
public ActionResult Save(SectionContentParagraph content) { if (!ModelState.IsValid) { return View("Form", content); } if (content.ActionType == ActionType.Create) { new SectionContentService().Add(content); } else { new SectionContentParagraphService().Update(content); } ViewBag.Close = true; return View("Form", content); }