public void Handle(UpdateClientAddressCommand command) { Client client = _clientRepository.GetEntity(command.ClientId); client = client.UpdateAddress(command.Adresse); _clientRepository.SaveAggregateEvents(client); }
public void UpdateClientAddress(UpdateClientAddressCommand command) { var handler = new UpdateClientAddressCommandHandler(new ClientRepository()); handler.Handle(command); }