public void Put(int id, [FromBody] OrderDto dto, [FromServices] IUpdateOrderCommand command) { dto.Id = id; _executor.ExecuteCommand(command, dto); }
public ActionResult Put(int id, [FromBody] CreateOrderDto dto, [FromServices] IUpdateOrderCommand command) { executor.ExecuteCommand(command, id, dto); return(NoContent()); }