public IHttpActionResult AcadStudentLeaveApplicationUpdate(AcadStudentLeaveApplication acadStudentLeaveApplicationUpdate) { var isUpdate = acadStudentLeaveApplicationservice.AcadStudentLeaveApplicationUpdate(acadStudentLeaveApplicationUpdate.UniversityId, acadStudentLeaveApplicationUpdate); if (isUpdate == true) { return(Ok()); } return(BadRequest()); }
public bool AcadStudentLeaveApplicationUpdate(int?id, AcadStudentLeaveApplication acadStudentLeaveApplicationupdate) { try { var AcadStudentLeaveApplicationupdatedisObj = JsonConvert.SerializeObject(acadStudentLeaveApplicationupdate); var JsonObj = db.AcadStudentLeaveApplicationUpdate(id, AcadStudentLeaveApplicationupdatedisObj); return(true); } catch (Exception ex) { Console.WriteLine("NotImplementedException", ex); return(false); } }