Пример #1
0
 public async Task AddAsync(User user)
 {
     await DbContainer.CreateItemAsync <User>(user, new PartitionKey(user.Id.ToString()));
 }
Пример #2
0
 public async Task AddAsync(Contact Contact)
 {
     await DbContainer.CreateItemAsync <Contact>(Contact, new PartitionKey(Contact.Id.ToString()));
 }