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