Ejemplo n.º 1
0
 public async Task AddAsync(User user)
 {
     await DbContainer.CreateItemAsync <User>(user, new PartitionKey(user.Id.ToString()));
 }
Ejemplo n.º 2
0
 public async Task AddAsync(Contact Contact)
 {
     await DbContainer.CreateItemAsync <Contact>(Contact, new PartitionKey(Contact.Id.ToString()));
 }