Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public void AddSuggestion(Suggestions suggestion)
 {
     _database.GetCollection<Suggestions>(_config.collections.Suggestions).Save(suggestion);
 }