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); }
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); }
public JsonResult ResizeWork(Work work) { var result = new { result_code = 200, success = true, data = new { work } }; return Json(result); }