Example #1
0
        public ActionResult View(string parkCode)
        {
            ParkModel park = parkDAL.GetPark(parkCode);

            if (park == null)
            {
                return(HttpNotFound());
            }

            List <DailyWeatherModel>  fiveDayForecast = weatherDAL.GetParkWeather(parkCode);
            ParkDailyWeatherViewModel parkWeather     = new ParkDailyWeatherViewModel()
            {
                Park            = park,
                FiveDayForecast = fiveDayForecast
            };

            return(View("View", parkWeather));
        }