예제 #1
0
        public IActionResult GetOrderedFood(int orderedFoodId)
        {
            var ordered = _orderedFoodRepository.GetOrderedFood(orderedFoodId);

            if (ordered == null)
            {
                return(StatusCode(500, "The order you requested is not valid"));
            }

            return(Ok(ordered));
        }