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

            return(Ok(order));
        }