public static List <Item> GetQuestionAndAnswer(AssessmentQuizArticlePage2Item ObjAssesmentQuizPage2, string AnswerText)
        {
            List <Item> _QnAID = new List <Item>(2);
            IEnumerable <QuizQuestionItem> AllQs = ObjAssesmentQuizPage2.AllQuestions;

            if (AllQs != null)
            {
                foreach (QuizQuestionItem q in AllQs)
                {
                    IEnumerable <QuizAnswersItem> AllAs = QuizQuestionItem.GetAllAnswers(q);
                    if (AllAs != null)
                    {
                        foreach (QuizAnswersItem a in AllAs)
                        {
                            if (a.Answer == AnswerText)
                            {
                                _QnAID.Add(q.InnerItem);
                                _QnAID.Add(a.InnerItem);
                            }
                        }
                    }
                }
            }
            return(_QnAID);
        }
    public static List<Item> GetQuestionAndAnswer(AssessmentQuizArticlePage2Item ObjAssesmentQuizPage2, string AnswerText)
    {
        List<Item> _QnAID = new List<Item>(2);
        IEnumerable<QuizQuestionItem> AllQs = ObjAssesmentQuizPage2.AllQuestions;
        if (AllQs != null)
        {
            foreach (QuizQuestionItem q in AllQs)
            {
                IEnumerable<QuizAnswersItem> AllAs = QuizQuestionItem.GetAllAnswers(q);
                if (AllAs != null)
                {
                    foreach (QuizAnswersItem a in AllAs)
                    {
                        if (a.Answer == AnswerText)
                        {
                            _QnAID.Add(q.InnerItem);
                            _QnAID.Add(a.InnerItem);


                        }
                    }
                }
            }

        }
        return _QnAID;
    }
        public static IEnumerable <QuizQuestionItem> GetAllQuestions(AssessmentQuizArticlePage2Item CurrentQuiz2)
        {
            IEnumerable <QuizQuestionItem> AllSlideItems = CurrentQuiz2.AllQuestions;

            return(AllSlideItems);
        }
 public static IEnumerable<QuizQuestionItem> GetAllQuestions(AssessmentQuizArticlePage2Item CurrentQuiz2)
 {
     IEnumerable<QuizQuestionItem> AllSlideItems = CurrentQuiz2.AllQuestions;
     return AllSlideItems;
 }