public IHttpActionResult AcadExamResultPhEduUpdate(AcadExamResultPhEdu aAcadExamResultPhEduupdate) { var isUpdate = acadExamResultPhEduService.AcadExamResultPhEduUpdate(aAcadExamResultPhEduupdate.UniversityId, aAcadExamResultPhEduupdate); if (isUpdate == true) { return(Ok()); } return(BadRequest()); }
public bool AcadExamResultPhEduUpdate(int?id, AcadExamResultPhEdu acadExamResultPhEdu) { try { var acadExamResultPhEduObj = JsonConvert.SerializeObject(acadExamResultPhEdu); var JsonObj = db.AcadExamResultPhEduUpdate(id, acadExamResultPhEduObj); return(true); } catch (Exception ex) { Console.WriteLine("NotImplementedException", ex); return(false); } }