Пример #1
0
 public async Task <IHttpActionResult> AddDiagnosis([FromBody] PatientDiagnosisDTO diagnosis)
 {
     try
     {
         return(await _manager.AddDiagnosis(diagnosis) ? Created <PatientDiagnosisDTO>("", null) : (IHttpActionResult)BadRequest("changes not excepted!"));
     }
     catch (Exception ex) { return(InternalServerError(ex)); }
 }