public async Task <IActionResult> UpdatePatientPhone([FromBody] UpdatePatientPhoneViewModel patientViewModel) { if (!ModelState.IsValid) { NotifyModelStateErrors(); return(Response(patientViewModel)); } _patientAppService.UpdatePhone(patientViewModel); return(Response(patientViewModel)); }
public void UpdatePhone(UpdatePatientPhoneViewModel patientPhoneViewModel) { var registerCommand = _mapper.Map <UpdatePatientHeartRateCommand>(patientPhoneViewModel); _bus.SendCommand(registerCommand); }