Exemple #1
0
 public async Task UpdateAsync(string id, CosmosDevice device)
 {
     await container.UpsertItemAsync <CosmosDevice>(device, new PartitionKey(id));
 }
Exemple #2
0
 public async Task AddAsync(CosmosDevice device)
 {
     await container.CreateItemAsync <CosmosDevice>(device, new PartitionKey(device.Id));
 }