public void Update(BatteryCollection batteryCollection)
        {
            BatteryCollection rBattery = GetBatteryCollectionById(batteryCollection.ID);
            if (rBattery == null)
                return;

            db.SaveChanges();
        }
 public void Insert(BatteryCollection batteryCollection)
 {
     db.BatteryCollections.Add(batteryCollection);
     db.SaveChanges();
 }