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

            return(Ok(order));
        }