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