Пример #1
0
        public async Task <IEnumerable <T> > GetAll()
        {
            var returnList = await _userTaskContext.Set <T>().ToListAsync();

            return(returnList);
        }
Пример #2
0
 public async Task <IEnumerable <Models.Task> > GetAllWithUser()
 {
     return(await _userTaskContext.Set <Models.Task>().Include(e => e.User).ToListAsync());
 }