public IActionResult AddSurveyPost(SurveyPost newSurvey) { if (ModelState.IsValid) { surveyDAL.SaveSurveyPost(newSurvey); return(RedirectToAction("Index", "Survey", new { ParkCode = newSurvey.ParkCode, EmailAddress = newSurvey.EmailAddress, State = newSurvey.State, ActivityLevel = newSurvey.ActivityLevel })); } else { return(View(newSurvey)); } }