コード例 #1
0
        public async Task <IActionResult> UpdatePatientPhone([FromBody] UpdatePatientPhoneViewModel patientViewModel)
        {
            if (!ModelState.IsValid)
            {
                NotifyModelStateErrors();
                return(Response(patientViewModel));
            }

            _patientAppService.UpdatePhone(patientViewModel);

            return(Response(patientViewModel));
        }
コード例 #2
0
        public void UpdatePhone(UpdatePatientPhoneViewModel patientPhoneViewModel)
        {
            var registerCommand = _mapper.Map <UpdatePatientHeartRateCommand>(patientPhoneViewModel);

            _bus.SendCommand(registerCommand);
        }