public void SubMenuAddCar()
        {
            Console.Clear();
            Car newCar = new Car();

            Console.WriteLine("Enter car make:");
            newCar.Make = Console.ReadLine();

            Console.WriteLine("Enter car model:");
            newCar.Model = Console.ReadLine();

            Console.WriteLine("Enter the maximum mile range for car:");
            newCar.MaxMileRange = Int32.Parse(Console.ReadLine());

            Console.WriteLine("Is the car powered by gas (G), electric (E) or a hybrid (H)?");
            string engineType = Console.ReadLine();

            switch (engineType)
            {
            case "G":
                GasCarRepo.AddCar(newCar);
                break;

            case "E":
                ElectricCarRepo.AddCar(newCar);
                break;

            case "H":
                HybridCarRepo.AddCar(newCar);
                break;
            }
        }
 public void SeedCar()
 {
     ElectricCarRepo.AddCar(new Car("Hyundai", "Ioniq", 170));
     ElectricCarRepo.AddCar(new Car("Porsche", "Taycan", 203));
     ElectricCarRepo.AddCar(new Car("Audi", "e-tron", 204));
     ElectricCarRepo.AddCar(new Car("Jaguar", "I-Pace", 234));
     GasCarRepo.AddCar(new Car("Hyundai", "Sonata", 330));
     HybridCarRepo.AddCar(new Car("Hyundai", "Sonata Hybrid", 340));
     GasCarRepo.AddCar(new Car("Lincoln", "MKC", 335));
     GasCarRepo.AddCar(new Car("Honda", "Civic", 350));
     HybridCarRepo.AddCar(new Car("Honda", "Civic Hybrid", 450));
     GasCarRepo.AddCar(new Car("Honda", "Accord", 330));
     HybridCarRepo.AddCar(new Car("Honda", "Accord Hybrid", 330));
     GasCarRepo.AddCar(new Car("Honda", "Pilot", 300));
     HybridCarRepo.AddCar(new Car("Honda", "Insight", 500));
     GasCarRepo.AddCar(new Car("Honda", "CR-V", 320));
     GasCarRepo.AddCar(new Car("Toyota", "Corolla", 360));
     HybridCarRepo.AddCar(new Car("Toyota", "Corolla Hybrid", 460));
     GasCarRepo.AddCar(new Car("Toyota", "Avalon", 360));
     HybridCarRepo.AddCar(new Car("Toyota", "Avalon Hybrid", 460));
     GasCarRepo.AddCar(new Car("Toyota", "Camry", 350));
     GasCarRepo.AddCar(new Car("Toyota", "RAV4", 330));
     GasCarRepo.AddCar(new Car("Toyota", "Highlander", 300));
     GasCarRepo.AddCar(new Car("Ford", "Fiesta", 390));
     GasCarRepo.AddCar(new Car("Ford", "Focus", 380));
     GasCarRepo.AddCar(new Car("Ford", "Fusion", 340));
     HybridCarRepo.AddCar(new Car("Ford", "Fusion Hybrid", 340));
     GasCarRepo.AddCar(new Car("Ford", "F-150", 280));
     GasCarRepo.AddCar(new Car("Ford", "F-250", 180));
     HybridCarRepo.AddCar(new Car("Kia", "Optima Hybrid", 330));
     ElectricCarRepo.AddCar(new Car("Nissan", "Leaf", 226));
     HybridCarRepo.AddCar(new Car("Toyota", "Prius", 730));
     ElectricCarRepo.AddCar(new Car("Tesla", "Model X", 300));
     ElectricCarRepo.AddCar(new Car("Tesla", "Model Y", 300));
     ElectricCarRepo.AddCar(new Car("Tesla", "Model S", 373));
     ElectricCarRepo.AddCar(new Car("Tesla", "Model 3", 300));
     ElectricCarRepo.AddCar(new Car("Mini", "Electric", 110));
     ElectricCarRepo.AddCar(new Car("Fiat", "500e", 84));
     ElectricCarRepo.AddCar(new Car("Kia", "Niro EV", 239));
     ElectricCarRepo.AddCar(new Car("BMW", "i3", 153));
     ElectricCarRepo.AddCar(new Car("Chevy", "Bolt", 238));
     ElectricCarRepo.AddCar(new Car("Hyundai", "Kona Electric", 258));
 }