예제 #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));
        }
예제 #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));
        }
예제 #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));
        }