public void AddProgram(Programs program) { _database.GetCollection<Programs>(_config.collections.Programs).Save(program); }
public void UpdateProgram(Programs program) { var query = Query<Programs>.EQ(e => e._id, program._id); var update = Update<Programs>.Replace(program); // update modifiers _database.GetCollection<Programs>(_config.collections.Programs).Update(query, update); }