private static void ReleaseCar(string arg) { bool released; try { released = parking.ReleaseCar(int.Parse(arg)); } catch (FormatException e) { released = parking.ReleaseCar(arg); } if (released) { Console.WriteLine("Released car"); } else { Console.WriteLine("Car not found"); } }