Esempio n. 1
0
 public async Task <IActionResult> Post(CreateCustomer command)
 => await SendAsync(command.Bind(c => c.Id, UserId),
                    resourceId : command.Id, resource : "customers");
Esempio n. 2
0
 public async Task <IActionResult> Post([FromBody] CreateCustomer command)
 => await DispatchAsync(command.Bind(c => c.Id, UserId),
                        resourceId : command.Id, resource : "customers");