private void showVehicleInGarageByStatus() { StringBuilder listToPrint = new StringBuilder(); try { int status = getRequestedStatus(); List <string> filteredVehicleList = m_GarageManager.GetVehiclesInGarageByStatus(status); eVehicleStatus vehicleStatus = m_GarageManager.CheckIfValidStatusParam(status); if (filteredVehicleList.Count != 0) { listToPrint.AppendLine(string.Format("Vehicles' License number with status {0}", vehicleStatus.ToString())); foreach (string vehicleLicenseNum in filteredVehicleList) { listToPrint.AppendLine(vehicleLicenseNum); } } else { listToPrint.AppendLine(string.Format("There are no vehicle with status {0} in the garage.", vehicleStatus.ToString())); } Console.WriteLine(listToPrint); } catch (ArgumentException ae) { Console.WriteLine(string.Format("{0}, Please Try Again.", ae.Message)); showVehicleInGarageByStatus(); } }