Ejemplo n.º 1
0
        public async Task UpdateAsync(int id, UpdatePatientDto input)
        {
            Patient patient = await _patientRepository.GetAsync(id);

            if (patient.Name != input.Name)
            {
                await _patientManager.ChangeNameAsync(patient, input.Name);
            }

            patient.BirthDate        = input.BirthDate;
            patient.ShortDescription = input.ShortDescription;

            await _patientRepository.UpdateAsync(patient);
        }