public async Task <IActionResult> UpdatePatientPhoto([FromBody] UpdatePatientPhotoViewModel patientViewModel) { if (!ModelState.IsValid) { NotifyModelStateErrors(); return(Response(patientViewModel)); } _patientAppService.UpdatePhoto(patientViewModel); return(Response(patientViewModel)); }
public void UpdatePhoto(UpdatePatientPhotoViewModel patientPhotoViewModel) { var registerCommand = _mapper.Map <UpdatePatientPhotoCommand>(patientPhotoViewModel); _bus.SendCommand(registerCommand); }