public async Task <IActionResult> Put(Guid id, UpdateProductCommand command) { await _dispatcher.SendAsync(command.Bind(c => c.Id, id)); return(NoContent()); }
public async Task <IActionResult> PutAsync(Guid id, UpdateProductCommand command) { var result = await SendAsync(command.Bind(c => c.Id, UserId), resourcId : command.Id, resource : "products"); return(result); }