Exemple #1
0
        public static SurveyQuestion GetQuestion(this SurveyPage page, string name)
        {
            if (page.Questions == null)
            {
                return(null);
            }

            return(page.Questions.FirstOrDefault(q => q.QuestionName == name));
        }
Exemple #2
0
        public static SurveyQuestion GetQuestionByText(this SurveyPage page, string question)
        {
            if (page.Questions == null)
            {
                return(null);
            }

            return(page.Questions.FirstOrDefault(q => q.QuestionText == question));
        }
Exemple #3
0
        public static SurveyQuestion GetQuestionByID(this SurveyPage page, int id)
        {
            if (page.Questions == null)
            {
                return(null);
            }

            return(page.Questions.FirstOrDefault(q => q.SurveyQuestionID == id));
        }