public void UpdatePerson(People person) { var query = Query<People>.EQ(e => e._id, person._id); var update = Update<People>.Replace(person); // update modifiers _database.GetCollection<People>(_config.collections.People).Update(query, update); }
public void AddPerson(People person) { _database.GetCollection<People>(_config.collections.People).Save(person); }