コード例 #1
0
        // GET: Detail
        public ActionResult ParkDetail(string id, string tempChoice)
        {
            TempChoiceModel tcm = new TempChoiceModel();

            tcm.ParkTempModel = dal.GetParkDetail(id.ToUpper());
            tcm.TempChoice    = tempChoice;

            return(View("ParkDetail", tcm));
        }
コード例 #2
0
ファイル: HomeController.cs プロジェクト: MitchelMayle/NPGeek
        public ActionResult ParkDetail(string parkName)
        {
            Park park = parkDAL.GetParkDetail(parkName);

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

            if (Session["isFahrenheit"] == null)
            {
                Session["isFahrenheit"] = true;
            }

            park.FiveDayForecast = parkDAL.GetFiveDayForecast(park.ParkImage);

            park.IsFahrenheit = (bool)Session["isFahrenheit"];

            return(View("ParkDetail", park));
        }
コード例 #3
0
        public ActionResult Detail(string id)
        {
            if (id == null)
            {
                id = "CVNP";
            }
            Session["Weather"] = weatherDAL.Get5DayWeather(id);

            var degrees = Session["degrees"];

            if (degrees == null)
            {
                degrees = 0;
            }
            Session["degrees"] = degrees;
            Park park = parkDAL.GetParkDetail(id);

            park.TempValue = (int)degrees;

            return(View("Detail", park));
        }
コード例 #4
0
        public ActionResult Detail(string parkCode)
        {
            ParkModel park = dal.GetParkDetail(parkCode);

            return(View("Detail", park));
        }