Created
December 20, 2019 05:18
-
-
Save AbhinavPradeep/ca8b44c72bf50e1204f15d74e28b8601 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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