Esempio n. 1
0
        public ActionResult Weather(string id)
        {
            Session["parkID"] = id;
            List <Weather> forecast = WeatherDAL.Get5DaysOfWeather(id);

            if (Session["keepTempType"] == null)
            {
                Session["keepTempType"] = "F";
            }
            foreach (var dayOfWeather in forecast)
            {
                dayOfWeather.TempType = Session["keepTempType"].ToString();
            }

            return(View("Weather", forecast));
        }