コード例 #1
0
ファイル: PageController.cs プロジェクト: Souric/BetterCMS
        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));
        }