Пример #1
0
        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);
        }
Пример #2
0
        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);
        }