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