Пример #1
0
 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);
     }
 }
Пример #2
0
 public ActionProfileAttribute(ProjectBActions actionToLog)
 {
     ActionToLog = actionToLog;
 }
Пример #3
0
 public ActionResult PagesForType(ProjectBActions id)
 {
     var staticPageBaseModel = new StaticPageBaseModel(this) { PageKey = id };
     return PartialView("PageEditor/PagesForType", staticPageBaseModel);
 }
Пример #4
0
 public ActionLogAttribute(ProjectBActions actionToLog)
 {
     ActionToLog = actionToLog;
 }