Created
August 23, 2017 15:15
-
-
Save dontpaniclabsgists/e3fc7cf335063b7de0dd667e45d1ad32 to your computer and use it in GitHub Desktop.
Cosmos1_7
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> Create(Note note) | |
{ | |
using (var client = new DocumentClient(new Uri(_endpoint), _key)) | |
{ | |
var link = UriFactory.CreateDocumentCollectionUri(_databaseId, CollectionId); | |
await client.CreateDocumentAsync(link, note); | |
return note; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment