public static PollAnswerCollection GetByPollQuestionID(Guid pollQuestionId) { if (pollQuestionId == Guid.Empty) { return(null); } //PollAnswerCollection pac = PollAnswerCollection.GetAll(); //PollAnswerCollection newpac = new PollAnswerCollection(); //foreach ( PollAnswer pa in pac ) //{ // if ( pa.PollQuestionId == pollQuestionId ) // { // newpac.Add( pa ); // } //} // OPT00020100219 PollAnswerCollection newpac = PollAnswerDAL.GetByPollQuestionID(pollQuestionId); return(newpac); }
public static PollAnswerCollection GetAll() { return(PollAnswerDAL.GetAll()); }