public async Task <IActionResult> Put(int id, [FromBody] UpdateOrder.Command command, CancellationToken cancellationToken) { command.Id = id; await _mediator.Send(command, cancellationToken); return(Ok()); }
public async Task UpdateAsync(UpdateOrder.Command command) { await _mediator.Send(command); }