Beispiel #1
0
        public IEnumerable <ResultAnswerOptionFromQuestionOptionDto> GetAnswerOptionsByQuestionOptionId(int questionOptionId)
        {
            IEnumerable <ResultAnswerOption> resultAnswerOptions = resultAnswerOptionRepository.Get(filter: opt => opt.OptionId == questionOptionId);

            return(mapper.Map <IEnumerable <ResultAnswerOptionFromQuestionOptionDto> >(resultAnswerOptions));
        }
Beispiel #2
0
        public IEnumerable <ResultAnswerOptionDto> GetAnswerOptionsByResultAnswerId(int resultAnswerId)
        {
            IEnumerable <ResultAnswerOption> resultAnswerOptions = resultAnswerOptionRepository.Get(filter: opt => opt.ResultAnswerId == resultAnswerId);

            return(mapper.Map <IEnumerable <ResultAnswerOptionDto> >(resultAnswerOptions));
        }