Created
August 23, 2017 15:16
-
-
Save dontpaniclabsgists/7ad318fbe7231f4deb9205e5bbfadc15 to your computer and use it in GitHub Desktop.
Cosmos1_8
This file contains hidden or 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
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