public async Task <IActionResult> Put(Guid id, [FromBody] UpdateProduct command) => await DispatchAsync(command.Bind(c => c.Id, id), resourceId : command.Id, resource : "products");
public async Task <IActionResult> Put(Guid id, UpdateProduct command) => await SendAsync(command.Bind(c => c.Id, id), resourceId : command.Id, resource : "products");
public async Task <IActionResult> UpdateAsync(Guid id, UpdateProduct command) { await commandDispatcher.DispatchAsync(command.Bind(x => x.ProductId, id)); return(NoContent()); }