예제 #1
0
 public async Task UpdatePatientWithInformation(PatientInformationDto patientInformationDto)
 {
     try
     {
         var patient = _mapper.Map <PatientInformationDto, Patient>(patientInformationDto);
         await _patientService.UpdatePatientWithInformation(patient);
     }
     catch (Exception exp)
     {
         Console.WriteLine(exp);
     }
 }
예제 #2
0
        public async Task <IActionResult> Information(PatientInformationDto patientInformationDto)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            try
            {
                await _patientMapperService.UpdatePatientWithInformation(patientInformationDto);

                return(Ok());
            }
            catch (Exception exp)
            {
                throw (exp);
            }
        }