public async Task <OrderDTO> GetOrderById(int id) { return(await _orderQuery.GetOrderAsync(id)); }
public async Task <IActionResult> Get([FromQuery] int id) { var order = await _orderQuery.GetOrderAsync(id); return(Ok(order)); }