Пример #1
0
        public JsonResult NextSectionView(SurveyUserData model)
        {
            IPrepareExtendedView <SurveyUserDataReturn, SurveyUserData> prepareStartSurveyView = new PrepareNextSectionView <SurveyUserDataReturn, SurveyUserData>();

            prepareStartSurveyView.Parameters = model;
            SurveyUserDataReturn surveyUserDataReturn = prepareStartSurveyView.GetView(_db);

            return(getResult(surveyUserDataReturn));
        }
Пример #2
0
        public JsonResult NextSection(SurveyUserData model)
        {
            ISaveModel <SurveyUserData> saveEmployeeSurveyScore = new SaveEmployeeSurveyScore <SurveyUserData>();

            saveEmployeeSurveyScore.Save(model, _db);

            IPrepareExtendedView <SurveyUserDataReturn, SurveyUserData> prepareStartSurveyView = new PrepareNextSectionView <SurveyUserDataReturn, SurveyUserData>();

            prepareStartSurveyView.Parameters = model;
            SurveyUserDataReturn surveyUserDataReturn = prepareStartSurveyView.GetView(_db);

            return(getResult(surveyUserDataReturn));
        }