// Get: /Setting/DeleteHoliday?holidayId=1 public JsonResult DeleteHoliday(int holidayId) { try { SettingData st = new SettingData(); st.DeleteHoliday(holidayId); return(Json(new { data = " ลบข้อมูลสำเร็จ ", success = true }, JsonRequestBehavior.AllowGet)); } catch (Exception ex) { return(Json(new { data = ex.Message, success = false }, JsonRequestBehavior.AllowGet)); } }