public IActionResult TakeSurvey(SurveyResult survey)
 {
     if (!ModelState.IsValid)
     {
         var allParks = nationalParkDAO.GetAllParks();
         survey.fillLists(allParks);
         return(View(survey));
     }
     else
     {
         var allParks = nationalParkDAO.GetAllParks();
         survey.fillLists(allParks);
         surveyDAO.SaveSurvey(survey);
         return(RedirectToAction("Results"));
     }
 }
        public IActionResult TakeSurvey()
        {
            var allParks = nationalParkDAO.GetAllParks();
            var survey   = new SurveyResult();

            survey.fillLists(allParks);

            return(View(survey));
        }