public ActionResult AddNewPage(string parentPageUrl) { var request = new AddNewPageCommandRequest { ParentPageUrl = parentPageUrl }; var model = GetCommand <AddNewPageCommand>().ExecuteCommand(request); var view = RenderView("AddNewPage", model); return(ComboWireJson(true, view, model, JsonRequestBehavior.AllowGet)); }
public ActionResult AddNewPage(string parentPageUrl, string addMaster) { var request = new AddNewPageCommandRequest { ParentPageUrl = parentPageUrl, CreateMasterPage = !string.IsNullOrEmpty(addMaster) && addMaster == "true" }; var model = GetCommand <AddNewPageCommand>().ExecuteCommand(request); var view = RenderView("AddNewPage", model); return(ComboWireJson(true, view, model, JsonRequestBehavior.AllowGet)); }