Skip to content

Instantly share code, notes, and snippets.

@ismailmayat
Created March 11, 2020 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ismailmayat/20bd042efaa9dd03357fe695c71bb990 to your computer and use it in GitHub Desktop.
Save ismailmayat/20bd042efaa9dd03357fe695c71bb990 to your computer and use it in GitHub Desktop.
double totalDocuments = _collection.CountDocuments(predicate);
total = totalDocuments;
var pagedIems = _collection.Find(predicate).Skip(pageNo*pageSize).Limit(pageSize).ToList();
return pagedIems;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment