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

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