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

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

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