Exemple #1
0
 public async Task SaveAsync(DataVerifier obj)
 {
     await _collection.ReplaceOneAsync(a => a.Id == obj.Id, obj, new UpdateOptions { IsUpsert = true });
 }
Exemple #2
0
 public void Save(DataVerifier obj)
 {
     _collection.ReplaceOne(a => a.Id == obj.Id, obj, new UpdateOptions {
         IsUpsert = true
     });
 }