示例#1
0
        public async Task <IActionResult> UpdatePatientPhoto([FromBody] UpdatePatientPhotoViewModel patientViewModel)
        {
            if (!ModelState.IsValid)
            {
                NotifyModelStateErrors();
                return(Response(patientViewModel));
            }

            _patientAppService.UpdatePhoto(patientViewModel);

            return(Response(patientViewModel));
        }
示例#2
0
        public void UpdatePhoto(UpdatePatientPhotoViewModel patientPhotoViewModel)
        {
            var registerCommand = _mapper.Map <UpdatePatientPhotoCommand>(patientPhotoViewModel);

            _bus.SendCommand(registerCommand);
        }