示例#1
0
        public async Task <IActionResult> Put(DiagnosisForEditDTO model)
        {
            Diagnosis diagnosis = mapper.Map <Diagnosis>(model);

            diagnosisRepository.Edit(diagnosis);
            await unitOfWork.CompleteAsync().ConfigureAwait(true);

            return(Ok(mapper.Map <DiagnosisForGetDTO>(await diagnosisRepository.Get(diagnosis.Id).ConfigureAwait(true))));
        }