public ActionResult DailySurvey()
        {
            if (Session[Session_SurveyTaken] == null)
            {
                Session[Session_SurveyTaken] = false;
            }
            if ((bool)Session[Session_SurveyTaken])
            {
                List <SurveyModel> allSurveys = surveyDAL.GetAllSurveys();
                ViewBag.SurveyTaken = "Thank You for Taking the Survey Here are Todays Results";
                return(RedirectToAction("DisplaySurveys", allSurveys));
            }
            ViewBag.SurveyTaken = "";
            List <ParkModel> parks = parksDAL.GetParks();

            foreach (ParkModel park in parks)
            {
                allParks.Add(new SelectListItem()
                {
                    Text  = park.ParkName,
                    Value = park.ParkCode
                });
            }

            ViewBag.ParkNames = allParks;
            ViewBag.States    = GetStates();
            ViewBag.Activity  = ActivityLevel();

            return(View("DailySurvey", new SurveyModel()));
        }
Ejemplo n.º 2
0
        public ActionResult Favorites()
        {
            //get list of surveys from DB
            List <Survey> surList = sDAL.GetAllSurveys();

            return(View("Favorites", surList));
        }
Ejemplo n.º 3
0
        public ActionResult SurveyResult()
        {
            SurveyResultVM model = new SurveyResultVM();

            model.ListAllSurveys = dal.GetAllSurveys();
            model.TotalSurveys   = dal.SurveyCount();
            return(View("SurveyResult", model));
        }
Ejemplo n.º 4
0
        // GET: Survey
        public ActionResult DisplaySurvey()
        {
            List <SurveyModel> model = surveyDAL.GetAllSurveys();

            return(View("DisplaySurvey", model));
        }
        public ActionResult TakeSurveyResult()
        {
            List <Survey> allSurveys = surveyDAL.GetAllSurveys();

            return(View(allSurveys));
        }
Ejemplo n.º 6
0
        public ActionResult SurveyResult()
        {
            List <SurveyResult> results = surveyDAL.GetAllSurveys();

            return(View("SurveyResult", results));
        }
Ejemplo n.º 7
0
 public ActionResult SurveyResult()
 {
     return(View(_dal.GetAllSurveys()));
 }