예제 #1
0
 public async Task AddAsync(
     ToDoData toDoData)
 {
     await _cosmosContainer.CreateItemAsync(
         toDoData,
         new PartitionKey(toDoData.Id));
 }
예제 #2
0
 public async Task UpdateByIdAsync(
     string id,
     ToDoData toDoData)
 {
     await _cosmosContainer.ReplaceItemAsync(
         toDoData,
         id,
         new PartitionKey(id));
 }