public async Task <IActionResult> UpdatePatientEmail([FromBody] UpdatePatientEmailViewModel patientViewModel) { if (!ModelState.IsValid) { NotifyModelStateErrors(); return(Response(patientViewModel)); } _patientAppService.UpdateEmail(patientViewModel); return(Response(patientViewModel)); }
public void UpdateEmail(UpdatePatientEmailViewModel patientEmailViewModel) { var registerCommand = _mapper.Map <UpdatePatientEmailCommand>(patientEmailViewModel); _bus.SendCommand(registerCommand); }