public IActionResult AddNewSurvey(SurveyViewModel surveyViewModel) { _db.AddNewSurvey(surveyViewModel.Survey); var parkSurveyList = _db.GetSurveyParkList(); return(RedirectToAction("Index", parkSurveyList)); }
public void AddSurveyTest() { SurveyResult testSurvey = new SurveyResult() { ParkCode = "CVNP", Email = "*****@*****.**", ActivityLevel = "Arduous", State = "KY" }; bool result = _db.AddNewSurvey(testSurvey); Assert.AreEqual(true, result); }