Exemplo n.º 1
0
        [HttpGet] //By default, everything we do is an HttpGet
        public ActionResult Index()
        {
            //TODO 4. Return the Index View
            //return View("Index");

            //TODO 6. Go to the database and get the recent 20 recipes
            //      and pass the List<Recipe> as the model
            var recipes = dal.GetLast20Recipes();

            return(View("Index", recipes));
        }