Beispiel #1
0
        public IHttpActionResult GetFood(string name)
        {
            var food = foodItemRepository.GetFoodItem(name);

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

            return(Ok(food));
        }