public IEnumerable <FoodCategory> GetFoodCategories()
        {
            List <FoodCategory> retLst = new List <FoodCategory>();

            IEnumerable <FoodCategoryDTO> foodCategoriesDto = _repo.GetFoodCategories();

            foreach (FoodCategoryDTO foodCategoryDto in foodCategoriesDto)
            {
                FoodCategory foodCategory = _mapper.Map <FoodCategory>(foodCategoryDto);
                retLst.Add(foodCategory);
            }

            return(retLst);
        }
Exemplo n.º 2
0
 public IEnumerable <FoodCategory> GetFoodCategories(bool noTracking = false)
 {
     return(foodCategory.GetFoodCategories());
 }