public void ListUser() { var listUser = _accountModel.GetList(null, null); if (listUser.Count > 0) { _accountModel.AccountPage(listUser); } else { Console.WriteLine("Không có tài khoản nào"); } }
public void ListUser() { var listUser = _accountModel.GetList(null, null); if (listUser.Count > 0) { foreach (var account in listUser) { Console.WriteLine(account.ToString()); } } else { Console.WriteLine("Không có tài khoản nào"); } _accountModel.AccountPage(listUser); }