Beispiel #1
0
 public async Task Put(Guid id, [FromBody] Customer customer)
 {
     var customerCommand = new CreateOrUpdateCustomerCommand(id, customer.Name);
     await _commandBus.Submit(customerCommand);
 }
Beispiel #2
0
 public async Task Post([FromBody] Customer customer)
 {
     var customerCommand = new CreateOrUpdateCustomerCommand(customer.CustomerId, customer.Name);
     await _commandBus.Submit(customerCommand);
 }