public ParkingSystem()
        {
            _parkingProvider = new ParkingProvider();
            _carProvider     = new CarProvider();

            _parkings = _parkingProvider.ReadParkings() ?? new List <Parking>();
            _cars     = _carProvider.ReadCars() ?? new List <Car>();
        }
        public void parkCar(Car car, Parking parking)
        {
            CarProvider carProvider = new CarProvider();
            carProvider.updateCarParking(car, parking);
            double price = PriceForCar(car);
            ChangeParkingProfit(parking, price);
            ChangeParkingCapacity(parking);
            Parking changedParking = parking;
            foreach (var parkingItem in Parkings)
            {
                if (parkingItem.Id == parking.Id)
                {
                    Parkings.Remove(parkingItem);
                    break;
                }
            }
            Parkings.Add(changedParking);
            WriteParkings(Parkings);
            Console.WriteLine("Your parking costs: {0} MKD", price);
            Console.WriteLine("You can park your car");

        }