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()); }
public async Task <List <Answer> > GetAll() { return(await collection.Find(f => true).ToListAsync()); }