示例#1
0
        public async Task <IEnumerable <Question> > FetchByIdsAsync(IEnumerable <int> ids)
        {
            var spec = new QuestionFilterSpecification(ids);

            return(await _questionRepository.ListAsync(spec));
        }
示例#2
0
        public Question GetById(int id)
        {
            var spec = new QuestionFilterSpecification(id);

            return(_questionRepository.GetSingleBySpec(spec));
        }