public void Save() { var collection = DatabaseHelpers.GetSeedCollection(); var filter = Builders <Evolution> .Filter.Eq(s => s.Id, this.Id); collection.ReplaceOne(filter, this); }
public void Insert() { var collection = DatabaseHelpers.GetSeedCollection(); collection.InsertOne(this); }