private static void GenerateCustomerMenu() { while (true) { Console.WriteLine("---------Minh_Bank---------"); Console.WriteLine("Welcome back: " + Program.currentLoggedIn.FullName); Console.WriteLine("1. Kiểm tra số dư."); Console.WriteLine("2. Rút tiền."); Console.WriteLine("3. Gửi tiền."); Console.WriteLine("4. Chuyển tiền."); Console.WriteLine("5. Kiểm tra lịch sử giao dịch."); Console.WriteLine("6. Thoát."); Console.WriteLine("---------------------------------------------"); Console.WriteLine("Nhập lựa chọn của bạn (1|2|3|4|5|6): "); var choice = Utility.GetInt32Number(); switch (choice) { case 1: _transactionController.CheckBalance(); break; case 2: if (_transactionController.Withdraw()) { Console.WriteLine("Rút tiền thành công."); Console.WriteLine("Bấm Enter để tiếp tục..."); Console.ReadLine(); } else { Console.WriteLine("Rút tiền thất bại."); Console.WriteLine("Bấm Enter để tiếp tục..."); Console.ReadLine(); } break; case 3: _transactionController.Deposit(); break; case 4: _transactionController.Transfer(); break; case 5: GenerateTransactionHistoryMenu(); break; case 6: Console.WriteLine("See you later."); Environment.Exit(1); break; default: Console.WriteLine("Invalid choice."); break; } } }