Ejemplo n.º 1
0
        public ObservableCollection <Answer> GetAnswerListByQuestionId(int rowID)
        {
            ObservableCollection <Answer> answerCollection = new ObservableCollection <Answer>();
            var answers = _questionRepository.GetAnswerListByQuestionId(rowID) as List <Answer>;

            foreach (var answer in answers)
            {
                answerCollection.Add(answer);
            }
            return(answerCollection);
        }