Skip to content

Instantly share code, notes, and snippets.

@AbhinavPradeep
Created December 20, 2019 05:18
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 AbhinavPradeep/ca8b44c72bf50e1204f15d74e28b8601 to your computer and use it in GitHub Desktop.
Save AbhinavPradeep/ca8b44c72bf50e1204f15d74e28b8601 to your computer and use it in GitHub Desktop.
private static void FindCustomer(IMongoCollection<Person> collection, int id)
{
var persons = collection.Find<Person>(person => person._id == id).ToList();
foreach (var person in persons)
{
PrintPerson(person);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment