private static Garage.eVehicleStatus getVehicleStatus() { string userChoice, error = null; do { if (error != null) { Console.WriteLine(error); } Console.WriteLine("Please Enter Vehicle Status: "); printMenu(Enum.GetNames(typeof(Garage.eVehicleStatus))); userChoice = Console.ReadLine(); }while (Garage.IsValidVehicleStatus(userChoice, ref error) == false); return((Garage.eVehicleStatus) int.Parse(userChoice)); }