//Takes a card public void InsertCard(Card card) { ATMMessages atmm = new ATMMessages(); atmm.InsertMessage(); Convert.ToInt32(card.Pin); PromptPIN(card); }
// Prompts the user for their PIN code public void PromptPIN(Card card) { ATMMessages atmm = new ATMMessages(); int value; atmm.PromptMessage(); try { int input = Convert.ToInt32(Console.ReadLine()); val.ValidateAccount(card, input); } catch (FormatException e) { throw new Exception("Wrong input", e); } finally { PromptPIN(card); } }