public void AddNewElectricCar()
        {
            TypeOfCar electric = new TypeOfCar();

            Console.WriteLine("What is the Make of you car?");
            electric.CarType = Console.ReadLine();

            Console.WriteLine("What is the Color of your car?");
            electric.CarColor = Console.ReadLine();

            Console.WriteLine("What is the Year of your car?");
            electric.YearOfCar = int.Parse(Console.ReadLine());


            _carRepo.AddElectricCar(electric);
        }
        public void AddNewGasCar()
        {
            TypeOfCar gasCar = new TypeOfCar();

            Console.WriteLine("What is the Make of you car?");
            gasCar.CarType = Console.ReadLine();

            Console.WriteLine("What is the Color of your car?");
            gasCar.CarColor = Console.ReadLine();

            Console.WriteLine("What is the Year of your car?");
            gasCar.YearOfCar = int.Parse(Console.ReadLine());


            _carRepo.AddGasCar(gasCar);
        }
        public void UpdateElectricCar()
        {
            ViewElectricCars();
            Console.WriteLine("Would you like to Update your account:" +
                              "1. Yes\n" +
                              "2. No.");
            int    number   = int.Parse(Console.ReadLine());
            string carType  = null;
            string carColor = null;
            int    carYear  = 0;

            if (number == 1)
            {
                Console.WriteLine("Please Enter the Make of the car.");
                carType = Console.ReadLine();
                Console.WriteLine("Please Enter the Color of the car");
                carColor = Console.ReadLine();
                Console.WriteLine("Please Enter Car Year.");
                carYear = int.Parse(Console.ReadLine());

                _carRepo.RemoveUpdateElectricCarBySpecifications(carType, carColor, carYear);
            }
            else
            {
                Console.WriteLine("thanks come again.");
            }

            TypeOfCar electric = new TypeOfCar();

            electric.CarType   = carType;
            electric.CarType   = carColor;
            electric.YearOfCar = carYear;
            Console.WriteLine("What is the Make of you car?");
            electric.CarType = Console.ReadLine();

            Console.WriteLine("What is the Color of your car?");
            electric.CarColor = Console.ReadLine();

            Console.WriteLine("What is the Year of your car?");
            electric.YearOfCar = int.Parse(Console.ReadLine());

            _carRepo.AddElectricCar(electric);
        }
 public void RemoveGasCarInformation(TypeOfCar gasCar)
 {
     _gasCar.Remove(gasCar);
 }
 public void AddGasCar(TypeOfCar gasCar)
 {
     _gasCar.Add(gasCar);
 }
 public void RemoveHybridCarInformation(TypeOfCar hybridCar)
 {
     _electricCar.Remove(hybridCar);
 }
 public void AddHybridCar(TypeOfCar hybridCar)
 {
     _hybridCar.Add(hybridCar);
 }
 public void RemoveElectricCarInformation(TypeOfCar electricCar)
 {
     _electricCar.Remove(electricCar);
 }
 public void AddElectricCar(TypeOfCar electricCar)
 {
     _electricCar.Add(electricCar);
 }