Beispiel #1
0
        public ActionResult HomePage()
        {
            List <NationalPark> parks = parkDAL.GetAllParks();

            return(View("HomePage", parks));
        }
Beispiel #2
0
        // GET: Home, default View
        public ActionResult Index()
        {
            List <NationalPark> parks = _dal.GetAllParks();

            return(View("ParkList", parks));
        }