Ejemplo n.º 1
0
        public async Task <IActionResult> UpdatePatientEmail([FromBody] UpdatePatientEmailViewModel patientViewModel)
        {
            if (!ModelState.IsValid)
            {
                NotifyModelStateErrors();
                return(Response(patientViewModel));
            }

            _patientAppService.UpdateEmail(patientViewModel);

            return(Response(patientViewModel));
        }
Ejemplo n.º 2
0
        public void UpdateEmail(UpdatePatientEmailViewModel patientEmailViewModel)
        {
            var registerCommand = _mapper.Map <UpdatePatientEmailCommand>(patientEmailViewModel);

            _bus.SendCommand(registerCommand);
        }