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