public void updateRecord(int id, string state, int btid) { IDBattery dbBattery = new DBattery(); dbBattery.updateRecord(id, state, btid); }
public MBattery getRecord(int id, Boolean getAssociation) { IDBattery dbBattery = new DBattery(); return dbBattery.getRecord(id, true); }
public List<MBattery> getAllRecord(Boolean getAssociation) { IDBattery dbBattery = new DBattery(); return dbBattery.getAllRecord(true); }
public List<string> getAllInfo() { IDBattery dbBattery = new DBattery(); return dbBattery.getAllInfo(); }
public void deleteRecord(int id) { IDBattery dbBattery = new DBattery(); dbBattery.deleteRecord(id); }
public int addNewRecord(string state, int btid) { IDBattery dbBattery = new DBattery(); int id = dbBattery.addNewRecord(state, btid); return id; }