/// <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); }
public static PollQuestionCollection GetAll() { return(PollQuestionDAL.GetAll()); }