Пример #1
0
        public IActionResult AddNewSurvey(SurveyViewModel surveyViewModel)
        {
            _db.AddNewSurvey(surveyViewModel.Survey);
            var parkSurveyList = _db.GetSurveyParkList();

            return(RedirectToAction("Index", parkSurveyList));
        }
Пример #2
0
        public void AddSurveyTest()
        {
            SurveyResult testSurvey = new SurveyResult()
            {
                ParkCode      = "CVNP",
                Email         = "*****@*****.**",
                ActivityLevel = "Arduous",
                State         = "KY"
            };
            bool result = _db.AddNewSurvey(testSurvey);

            Assert.AreEqual(true, result);
        }