Beispiel #1
0
        public async Task <IHttpActionResult> EditDiagnose([FromBody] PatientDiagnoseDTO diagnosis)
        {
            try
            {
                var isUpdated = await _manager.EditDiagnose(diagnosis);

                return(isUpdated ? Ok(isUpdated) : (IHttpActionResult)BadRequest("changes not excepted!"));
            }
            catch (Exception ex) { return(InternalServerError(ex)); }
        }