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