예제 #1
0
        public IActionResult GetOrders()
        {
            var orderEntities = _orderInfoRepository.GetOrders();

            if (orderEntities == null)
            {
                return(StatusCode(500, "The order table is empty"));
            }


            return(Ok(orderEntities));
        }