예제 #1
0
 public JsonResult SubmitWork(Work work)
 {
     if (work.idcode == null)
     {
         work.idcode = Guid.NewGuid().ToString();
     }
     var result = new { result_code = 200, success = true, data = new { work } };
     return Json(result);
 }
예제 #2
0
 public JsonResult GetWork(Work data)
 {
     Work work = new Work();
     work.idcode = data.idcode;
     work.title = data.title;
     work.isallday = data.isallday;
     work.start =data.start;
     work.end = data.end;
     work.remindtime = "15";
     work.isremind = "true";
     work.content = "new work content";
     var result = new { result_code = 200, success = true, data = new { work } };
     return Json(result, JsonRequestBehavior.AllowGet);
 }
예제 #3
0
 public JsonResult ResizeWork(Work work)
 {
     var result = new { result_code = 200, success = true, data = new { work } };
     return Json(result);
 }