示例#1
0
        public async Task <IActionResult> GetAllOrders()
        {
            var orders = await _repo.GetAllOrders();

            if (orders == null)
            {
                return(NotFound());
            }

            return(Ok(orders));
        }