public void Update(BatteryCharging batteryCharging)
        {
            BatteryCharging rBatteryCharging = GetBatteryChargingById(batteryCharging.ID);
            if (rBatteryCharging == null)
                return;

            rBatteryCharging.CompletedTime = batteryCharging.CompletedTime;
            rBatteryCharging.EstimatedTime = batteryCharging.EstimatedTime;
            db.SaveChanges();
        }
 public void Insert(BatteryCharging batteryCharging)
 {
     db.BatteryChargings.Add(batteryCharging);
     db.SaveChanges();
 }