public IActionResult Index(SurveyViewModel model)
        {
            model.AllSelectableParks = parkSqlDAL.GetAllParksSelectList();

            if (!ModelState.IsValid)
            {
                return(View("Index", model));
            }

            surveyResultSqlDAL.AddSurveyResult(model.SurveyInProcess);

            return(RedirectToAction("Results", "Survey"));
        }
        public void AddSurveyResultTests()
        {
            //Arrange
            Survey survey = new Survey()
            {
                ActivityLevel        = "sedentary",
                EmailAddress         = "*****@*****.**",
                FavoriteNationalPark = "TEST",
                StateOfResidence     = "TT"
            };

            //Act
            int surveyId = surveyResultSqlDAL.AddSurveyResult(survey);

            //Assert
            Assert.AreNotEqual(0, surveyId);
        }