示例#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);
        }