コード例 #1
0
        /// <summary>
        /// Trouver les Questions d'un Questionnaire
        /// </summary>
        /// <param name="questionnaireID">questionnaireID</param>
        /// <returns></returns>
        public static PollQuestionCollection GetByQuestionnaire(int questionnaireID)
        {
            // OPT00020100219
            //PollQuestionCollection newpqc = new PollQuestionCollection();
            //PollQuestionCollection pqc = PollQuestionCollection.GetAll();
            //foreach ( PollQuestion pc in pqc )
            //{
            //    if ( pc.QuestionnaireID == questionnaireID )
            //    {
            //        newpqc.Add( pc );
            //    }
            //}

            PollQuestionCollection newpqc = PollQuestionDAL.GetByQuestionnaireID(questionnaireID);

            return(newpqc);
        }
コード例 #2
0
 public static PollQuestionCollection GetAll()
 {
     return(PollQuestionDAL.GetAll());
 }