Beispiel #1
0
        public ActionResult <MealReadDto> GetMealById(int id)
        {
            var MealItem = _repository.GetMealById(id);

            if (MealItem != null)
            {
                return(Ok(_mapper.Map <MealReadDto>(MealItem)));
            }
            return(NotFound());
        }