private static void createNewExpense() { RETRY: try { Expense ex = new Expense(); ex.Details = UIHelper.GetString("Enter the details of the Expense"); ex.Amount = UIHelper.GetDouble("Enter the Amount of the Expense"); ex.Date = UIHelper.GetDate("Enter the date of expense as dd-MM-yyyy"); com.AddExpense(ex); } catch (Exception ex) { Console.WriteLine(ex.Message); goto RETRY; } }