public async Task UpdatePatientWithInformation(PatientInformationDto patientInformationDto) { try { var patient = _mapper.Map <PatientInformationDto, Patient>(patientInformationDto); await _patientService.UpdatePatientWithInformation(patient); } catch (Exception exp) { Console.WriteLine(exp); } }
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); } }