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