Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Created September 29, 2017 17:39
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 NMZivkovic/9ee14ff39fa6fb02c605ca9cdb5d3d5b to your computer and use it in GitHub Desktop.
Save NMZivkovic/9ee14ff39fa6fb02c605ca9cdb5d3d5b to your computer and use it in GitHub Desktop.
var users = await _mongoDbRepo.GetUsersByField("name", "Nikola");
var user = users.FirstOrDefault();
var result = await _mongoDbRepo.UpdateUser(user.Id, "address", "test address");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment