public void Insert(Car car)
        {
            if (car == null)
                return;

            db.Cars.Add(car);
            db.SaveChanges();
        }
        public void Update(Car car)
        {
            if (car == null)
                return;
            Car dbCar = GetCarById(car.ID);
            if (dbCar == null)
                return;

            dbCar.Manufacturer = car.Manufacturer;
            dbCar.ManufacturerId = car.ManufacturerId;
            dbCar.ModelId = car.ModelId;
            db.SaveChanges();
        }
 public bool CreateCar(Car car)
 {
     throw new NotImplementedException();
 }
 public bool CreateCar(Car car)
 {
     return new UserService().CreateCar(car);
 }
 public bool UpdateCar(Car car)
 {
     return new UserService().UpdateCar(car);
 }