Exemplo n.º 1
0
 //PUT
 public static async Task PutDogAsync(Dog dog2)
 {
     await myDocumentClient.ReplaceDocumentAsync(UriFactory.CreateDocumentUri(DatabaseId, CollectionId, dog2.Id), dog2);
 }
Exemplo n.º 2
0
 //DELETE
 public static async Task DeleteDogAsync(Dog deleteDog)
 {
     await myDocumentClient.DeleteDocumentAsync(UriFactory.CreateDocumentUri(DatabaseId, CollectionId, deleteDog.Id));
 }
Exemplo n.º 3
0
 //POST
 public static async Task PostDogAsync(Dog dog)
 {
     await myDocumentClient.CreateDocumentAsync(UriFactory.CreateDocumentCollectionUri(DatabaseId, CollectionId), dog);
 }