public async Task <IEnumerable <Question> > FetchByIdsAsync(IEnumerable <int> ids) { var spec = new QuestionFilterSpecification(ids); return(await _questionRepository.ListAsync(spec)); }
public Question GetById(int id) { var spec = new QuestionFilterSpecification(id); return(_questionRepository.GetSingleBySpec(spec)); }