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); }
public IEnumerable <FoodCategory> GetFoodCategories(bool noTracking = false) { return(foodCategory.GetFoodCategories()); }