/// <summary> /// Returns a list of Favorite Parks to the Favorite Parks display /// </summary> /// <returns></returns> public ActionResult FavoritePark() { //sets a list of favorite park objects to send to the Favorite Park View var surveys = _surveyDAL.GetSurveys(); return(View("FavoritePark", surveys)); }
/// <summary> /// retrieves top 5 parks based on number of surveys from DB /// </summary> /// <returns></returns> public IActionResult SurveyResults() { IList <SurveyResults> results = new List <SurveyResults>(); results = sdal.GetSurveys(); return(View(results)); }
public IActionResult Favorites() { var surveyResults = surveyDAL.GetSurveys(); return(View(surveyResults)); }
// GET: Home/Favorites public ActionResult Favorites() { var model = _surveyDal.GetSurveys(); return(View("Favorites", model)); }