public Task <List <Question> > GetAllAsync(Expression <Func <Question, bool> > filter = null)
 {
     return(_questionDal.GetAllAsync(filter));
 }
示例#2
0
        async public Task <IDataResult <List <Question> > > GetAllQuestions()
        {
            var data = await _questionDal.GetAllAsync();

            return(new SuccessDataResult <List <Question> >(data));
        }