public ActionResult StaticPageEdit(ProjectBActions id, StaticPageTransport staticPageTransport) { switch (Request.RequestType.ToUpper()) { case "POST": return StaticPageFormatJsonResult(staticPageTransport); case "PUT": return StaticPageFormatJsonResult(ProjectProvider.Instance.StaticPageProvider.SaveStaticPageModel(id, staticPageTransport)); case "GET": default: return StaticPageFormatJsonResult(ProjectProvider.Instance.StaticPageProvider.GetStaticPageModel(id, staticPageTransport.ID) ?? staticPageTransport); } }
public ActionProfileAttribute(ProjectBActions actionToLog) { ActionToLog = actionToLog; }
public ActionResult PagesForType(ProjectBActions id) { var staticPageBaseModel = new StaticPageBaseModel(this) { PageKey = id }; return PartialView("PageEditor/PagesForType", staticPageBaseModel); }
public ActionLogAttribute(ProjectBActions actionToLog) { ActionToLog = actionToLog; }