Ejemplo n.º 1
0
        // public List<SelectListItem> ParkCodes => parkCodes.Select(code => new SelectListItem() { Text = code, Value = code });
        /// <summary>
        /// Display all the previous survey results.
        /// </summary>
        /// <returns>The page with the results bound to it.</returns>
        public IActionResult Index()
        {
            var favoriteParks = dal.GetAllResults();

            return(View(favoriteParks));
        }