Esempio n. 1
0
 public async Task <IActionResult> Post(CreateOrder command)
 => await SendAsync(command.BindId(c => c.Id).Bind(c => c.CustomerId, UserId),
                    resourceId : command.Id, resource : "orders");
 public async Task <IActionResult> Post(CreateOrder command)
 {
     return(await SendAsync(command.BindId(c => c.Id), resourceId : command.Id, resource : "products"));
 }