Example #1
0
        public async Task <IActionResult> Get()
        {
            OrderInfo[] orders = await _orderList.GetAll();

            if (orders.Length == 0)
            {
                throw new EntityNotFoundException();
            }
            return(Ok(orders));
        }
 public async Task <IActionResult> Get()
 {
     return(Ok(await _ordersService.GetAll()));
 }