Carrotware.CMS.Mvc.UI.Admin.Controllers.CmsAdminController.PageAddEdit C# (CSharp) Метод

PageAddEdit() приватный Метод

private PageAddEdit ( ContentPageModel model ) : System.Web.Mvc.ActionResult
model Carrotware.CMS.Mvc.UI.Admin.Models.ContentPageModel
Результат System.Web.Mvc.ActionResult
		public ActionResult PageAddEdit(ContentPageModel model) {
			Helper.ForceValidation(ModelState, model);
			model.Mode = (String.IsNullOrEmpty(model.Mode) || model.Mode.Trim().ToLowerInvariant() != "raw") ? "html" : "raw";
			ViewBag.ContentEditMode = model.Mode;

			if (ModelState.IsValid) {
				var pageContents = model.SavePage();

				if (model.VisitPage) {
					Response.Redirect(pageContents.FileName);
				} else {
					return RedirectToAction("PageAddEdit", new { @id = pageContents.Root_ContentID, @mode = model.Mode });
				}
			}

			Helper.HandleErrorDict(ModelState);
			model.RefreshWidgetList();

			return View(model);
		}

Same methods

CmsAdminController::PageAddEdit ( System.Guid id, System.Guid versionid, System.Guid importid, string mode ) : System.Web.Mvc.ActionResult