private void RentApartment()
        {
            Console.WriteLine("Available apartments for rent: ");
            foreach (var apartment in ApartmentsForRent)
            {
                apartment.Print();
            }
            Console.WriteLine("Choose by typing the id of the apartment! ");
            int apartmentID = int.Parse(Console.ReadLine());

            Console.WriteLine("Write you name:");
            string name = Console.ReadLine();

            Console.WriteLine("NumberO of Days:");
            int days          = int.Parse(Console.ReadLine());
            var tempApartment = new Apartment();

            foreach (var apartment1 in ApartmentsForRent)
            {
                if (apartment1.ID == apartmentID)
                {
                    tempApartment = apartment1;
                }
            }
            var apartmentRent = new ApartmentRent
            {
                ID           = apartmentID,
                LesseeName   = name,
                NumberOfDays = days,
                PricePerDay  = 20.0,
                Apartment    = tempApartment,
                EntryDate    = DateTime.Now
            };

            ApartmentRents.Add(apartmentRent);
            ApartmentsForRent.Remove(tempApartment);
        }
        public void RemoveRentByID()
        {
            Console.Write("Rent ID: ");
            int id            = int.Parse(Console.ReadLine());
            var carRent       = new CarRent();
            var apartmentRent = new ApartmentRent();

            foreach (var car in CarRents)
            {
                if (car.ID == id)
                {
                    carRent = car;
                }
            }
            foreach (var apartment in ApartmentRents)
            {
                if (apartment.ID == id)
                {
                    apartmentRent = apartment;
                }
            }
            if (carRent != null)
            {
                CarRents.Remove(carRent);
                CarsForRent.Add(carRent.Car);
            }
            else if (apartmentRent != null)
            {
                ApartmentRents.Remove(apartmentRent);
                ApartmentsForRent.Add(apartmentRent.Apartment);
            }
            else
            {
                Console.WriteLine("Rent with this ID does not exist!");
            }
        }