示例#1
0
        public ActionResult Index()
        {
            var indexViewModel = new IndexViewModel
            {
                FavouriteRecipes   = _homeService.FavouriteRecipes().ToList(),
                Weekdaymeals       = _ingredientService.GetFewerIngredientsRecipes().ToList(),
                PopularIngredients = _ingredientService.GetPopularIngredients().ToList()
            };

            return(View(indexViewModel));
        }