public ActionResult Index(Survey survey) { if (ModelState.IsValid) { surveyDAL.AddSurveyResultToDB(survey); return(RedirectToAction("SurveyResult")); } List <NationalPark> parks = parkDAL.GetAllParks(); Survey newSurvey = new Survey(parks) { ParkCode = survey.ParkCode, EmailAddress = survey.EmailAddress, State = survey.State, ActivityLevel = survey.ActivityLevel }; return(View("Index", newSurvey)); }