Exemplo n.º 1
0
        private void SearchVehicleByRegNr()
        {
            string  regNr   = ui.GetRegNr();
            Vehicle vehicle = garageHandler.GetVehicleByRegNr(regNr);

            if (vehicle != null)
            {
                ui.PrintVehicle(vehicle);
            }
            else
            {
                ui.PrintWrongMessage("Fordomet hittades inte i garaget");
            }
        }