示例#1
0
        public async Task <IActionResult> Get(int id)
        {
            var order = await _orderList.Get(id);

            if (order == null)
            {
                throw new NotSupportedException();
            }
            return(Ok(order));
        }
 public async Task <IActionResult> GetAsync(int id)
 {
     return(Ok(await _ordersService.Get(id)));
 }