public void MoveCustomer(int customerId, Address newAddress) { var command = new MoveCustomerCommand { CustomerId = customerId, NewAddress = newAddress }; this.handler.Handle(command); }
public void MoveCustomer(MoveCustomerCommand command) { commandDispatcher.Dispatch(command); }