Пример #1
0
        public async Task <List <SearchTerm> > GetAll()
        {
            var filter = Builders <SearchTerm> .Filter.Ne("Text", string.Empty);

            var sort = GetSort();

            return(await collection.Find(filter).Sort(sort).ToListAsync());
        }
Пример #2
0
 public async Task <List <Answer> > GetAll()
 {
     return(await collection.Find(f => true).ToListAsync());
 }