private async Task Handle(CreateCustomerCommand command) { await Repository.ExecuteOnNew<CustomerAggregateRoot>(command.CustomerId, command); }
private void Handle(CreateCustomerCommand command) { RaiseEvent(new CustomerCreatedEvent { CustomerId = command.CustomerId, Name = command.Name }); }
private async Task Handle(CreateCustomerCommand command) { await Repository.ExecuteOnNew <CustomerAggregateRoot>(command.CustomerId, command); }