public IEnumerable <ResultAnswerOptionFromQuestionOptionDto> GetAnswerOptionsByQuestionOptionId(int questionOptionId) { IEnumerable <ResultAnswerOption> resultAnswerOptions = resultAnswerOptionRepository.Get(filter: opt => opt.OptionId == questionOptionId); return(mapper.Map <IEnumerable <ResultAnswerOptionFromQuestionOptionDto> >(resultAnswerOptions)); }
public IEnumerable <ResultAnswerOptionDto> GetAnswerOptionsByResultAnswerId(int resultAnswerId) { IEnumerable <ResultAnswerOption> resultAnswerOptions = resultAnswerOptionRepository.Get(filter: opt => opt.ResultAnswerId == resultAnswerId); return(mapper.Map <IEnumerable <ResultAnswerOptionDto> >(resultAnswerOptions)); }