public JsonResult PostAdd_DailyRemark(DailyRemark item) { try { ContractData data = new ContractData(); data.Add_DailyRemark(item); return(Json(new { data = "บันทึกรายการสำเร็จ", success = true }, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(new { success = false, data = ex.Message }, JsonRequestBehavior.AllowGet)); } }