Example #1
0
        public async Task <ActionResult> UpdateClient([FromBody] ClientViewModel clientViewModel)
        {
            var command = new UpdateClientCommand(clientViewModel.Name, clientViewModel.Birthday,
                                                  clientViewModel.Passport, clientViewModel.StreetAddress,
                                                  clientViewModel.City, clientViewModel.State,
                                                  clientViewModel.PostalCode, _user);
            await _mediatorHandle.PublishCommand(command);

            return(CustomResponse(clientViewModel));
        }