public IActionResult SaveSurvey(CreateConfirmationSurveyViewModel surveyModel)
        {
            var survey = new Survey
            {
                Name = surveyModel.Name
            };

            try
            {
                _surveyDao.CreateSurvey(surveyModel.Name, surveyModel.OriginalSurveySelectedQuestions.ToList());
            }
            catch (Exception exception)
            {
            }

            var model = GetConfirmationSurveyModel(surveyModel.OriginalSurveySelectedQuestions);

            model.Name = surveyModel.Name;

            return(View("SaveSurvey", model));
        }
        public IActionResult SaveSurvey(CreateConfirmationSurveyViewModel surveyModel)
        {
            if (ModelState.IsValid)
            {
                var survey = new Survey
                {
                    Name = surveyModel.Name,
                };

                try
                {
                    _surveyDao.CreateSurvey(surveyModel.Name, surveyModel.OriginalSurveySelectedQuestions.ToList());
                }
                catch (Exception exception)
                {
                }

                return(RedirectToAction(nameof(Create)));
            }

            surveyModel.SurveySelectedQuestions = GetSelectedQuestionViewModel(surveyModel.OriginalSurveySelectedQuestions);
            return(View(surveyModel));
        }