private static Vehicle GetNewData(int selectedProperty, Vehicle vehicle)
        {
            switch (selectedProperty)
            {
            case 1:
            {
                vehicle.YearOfProduction = InputValidator.GetPositiveNumber("Enter year of production");
                break;
            }

            case 2:
            {
                vehicle.NumberOfKm = InputValidator.GetPositiveNumber("Enter number of km");
                break;
            }

            case 3:
            {
                vehicle.VehicleBrand = InputValidator.GetText("Enter brand of vehicle");
                break;
            }

            case 4:
            {
                vehicle.VehicleType = InputValidator.GetText("Enter type of vehicle");
                break;
            }

            case 5:
            {
                vehicle.VehicleFuel = InputValidator.GetFuel();
                break;
            }

            case 6:
            {
                vehicle.Price = InputValidator.GetPositiveDecimal("Enter price");
                break;
            }

            case 7:
            {
                vehicle.City = InputValidator.GetText("Enter city");
                break;
            }

            case 8:
            {
                vehicle.NumberOfDoors = InputValidator.GetPositiveNumber("Enter number of doors");
                break;
            }

            case 9:
            {
                vehicle.IsCrashed = InputValidator.GetBoolen("Enter if vehicle was crashed - Yes/No");
                break;
            }
            }
            return(vehicle);
        }
        private static void Add()
        {
            Vehicle vehicle = new Vehicle(Autobazar.GetNextId());

            vehicle.YearOfProduction = InputValidator.GetPositiveNumber("Enter year of production");
            vehicle.NumberOfKm       = InputValidator.GetPositiveNumber("Enter number of km");
            vehicle.VehicleBrand     = InputValidator.GetText("Enter brand of vehicle");
            vehicle.VehicleType      = InputValidator.GetText("Enter type of vehicle");
            vehicle.VehicleFuel      = InputValidator.GetFuel();
            vehicle.Price            = InputValidator.GetPositiveDecimal("Enter price");
            vehicle.City             = InputValidator.GetText("Enter city");
            vehicle.NumberOfDoors    = InputValidator.GetPositiveNumber("Enter number of doors");
            vehicle.IsCrashed        = InputValidator.GetBoolen("Enter if vehicle was crashed - Yes/No");

            Autobazar.AddVehicle(vehicle);

            ConsoleWriter.ConsoleHorizontalLine('-');
            Console.WriteLine("Vehicle was added.");
        }
        private static void Edit()
        {
            WriteVehiclesToScreen();

            int     vehicleId = InputValidator.GetPositiveNumber("Enter number of vehicle to edit");
            Vehicle vehicle   = Autobazar.GetVehicleById(vehicleId);

            if (vehicle == null)
            {
                Console.WriteLine("Vehicle not found");
            }
            else
            {
                bool toContinue = true;
                do
                {
                    WriteMenuForEditToScreen();
                    int propertyToEdit = InputValidator.GetNumberFromInterval("Enter number of selected property", 1, 9);

                    vehicle = GetNewData(propertyToEdit, vehicle);

                    bool isError = false;
                    try
                    {
                        Autobazar.EditVehicle(vehicle);
                    }
                    catch (VehicleNotFoundException)
                    {
                        isError = true;
                        Console.WriteLine("Vehicle not found");
                    }

                    if (isError == false)
                    {
                        ConsoleWriter.ConsoleHorizontalLine('-');
                        Console.WriteLine("Vehicle was edited.");
                    }

                    toContinue = InputValidator.GetBoolen($"Something else to edit on vehicle {vehicleId} ? Yes/No");
                } while (toContinue);
            }
        }