public async Task <IHttpActionResult> EditPatient([FromBody] PatientDTO patient) { try { var isUpdated = await _manager.EditPatient(patient); return(isUpdated ? Ok() : (IHttpActionResult)BadRequest("changes not excepted!")); } catch (Exception ex) { return(InternalServerError(ex)); } }