public ActionResult AddModule(string pageTitle, FormCollection collection) { throw new NotImplementedException(); var page = pageService.GetPageByTitle(pageTitle.UrlDecodeSeo()); ModuleController mc = new ModuleController(); // mc.Edit }
public ActionResult EditModule(string pageTitle, string moduleTitle, FormCollection collection) { try { var page = pageService.GetPageByTitle(pageTitle.UrlDecodeSeo()); ModuleController mc = new ModuleController(); var editResult = mc.Edit(page, moduleTitle.UrlDecodeSeo(), collection); pageService.Save(page); return editResult; } catch { return Json(new { status = "fail", message = "Unable to save page " + pageTitle.UrlDecodeSeo() }); ; } }