Beispiel #1
0
        // GET: Survey
        public ActionResult Index()
        {
            _surveryViewModel.ParkList = _dal.GetParks();

            Session["currentPage"] = "survey";
            return(View("Survey", _surveryViewModel));
        }
Beispiel #2
0
        // GET: Home
        public ActionResult Index()
        {
            Session["currentPage"] = "home";

            //if your units are net set defualt them to f
            if (Session["units"] == null)
            {
                Session["units"] = TempuratureHelper.EUnits.f;
            }

            List <Park> parks = new List <Park>();

            parks = _dal.GetParks();

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