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())); }
public ActionResult Favorites() { //get list of surveys from DB List <Survey> surList = sDAL.GetAllSurveys(); return(View("Favorites", surList)); }
public ActionResult SurveyResult() { SurveyResultVM model = new SurveyResultVM(); model.ListAllSurveys = dal.GetAllSurveys(); model.TotalSurveys = dal.SurveyCount(); return(View("SurveyResult", model)); }
// 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)); }
public ActionResult SurveyResult() { List <SurveyResult> results = surveyDAL.GetAllSurveys(); return(View("SurveyResult", results)); }
public ActionResult SurveyResult() { return(View(_dal.GetAllSurveys())); }