Пример #1
0
        public IActionResult SurveyResults()
        {
            ISurveyDao dao = new SurveyDao(Startup.ConnectionString);

            IList <SurveyResult> surveyResults = dao.GetSurveyResults();

            return(View(surveyResults));
        }
Пример #2
0
        public IActionResult SubmitForm(Survey survey)
        {
            ISurveyDao dao = new SurveyDao(Startup.ConnectionString);

            dao.SubmitForm(survey);

            return(RedirectToAction("SurveyResults"));
        }