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