Skip to content

Instantly share code, notes, and snippets.

@dontpaniclabsgists
Created August 23, 2017 15:16
Show Gist options
  • Save dontpaniclabsgists/7ad318fbe7231f4deb9205e5bbfadc15 to your computer and use it in GitHub Desktop.
Save dontpaniclabsgists/7ad318fbe7231f4deb9205e5bbfadc15 to your computer and use it in GitHub Desktop.
Cosmos1_8
public async Task<Note> Update(Note note)
{
using (var client = new DocumentClient(new Uri(_endpoint), _key))
{
var link = UriFactory.CreateDocumentUri(_databaseId, CollectionId, note.Id);
await client.ReplaceDocumentAsync(link, note);
return note;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment