public async Task <IEnumerable <FoodItem> > GetMeat() { return(FoodItemSeeder.GetDummyMeat()); var willys = await FoodService.GetStoreProducts(Store.Coop, Category.Meat); var willysFoodItems = FoodItemMapper.MapProductsToFoodItems(willys, "Coop"); return(willysFoodItems); }
public async Task <IEnumerable <FoodItem> > GetCheese() { //var test = await FoodService.GetStoreProducts("Willys"); return(FoodItemSeeder.GetDummyFoodItems()); var willysProducts = await FoodService.GetStoreProducts(Store.Willys, Category.Cheese); var willysFoodItems = FoodItemMapper.MapProductsToFoodItems(willysProducts, "Willys"); //return willysFoodItems; var coopProducts = await FoodService.GetStoreProducts(Store.Coop, Category.Cheese); var coopFoodItems = FoodItemMapper.MapProductsToFoodItems(coopProducts, "Coop", willysFoodItems.Count); var allFoodItems = new List <FoodItem>(); allFoodItems.AddRange(willysFoodItems); allFoodItems.AddRange(coopFoodItems); return(allFoodItems); //return willysFoodItems; }