Exemplo n.º 1
0
 public BankServer()
 {
     bankDB            = new BankDB.BankDB();
     GetBankDB         = bankDB;
     UserAccess        = bankDB.GetUserAccess();
     AccountAccess     = bankDB.GetAccountInterface();
     TransactionAccess = bankDB.GetTransactionInterface();
 }
Exemplo n.º 2
0
        public List <UserAccount> GetUsers()
        {
            user = myBank.GetUserAccess();

            List <UserAccount> returnList = new List <UserAccount>();
            List <uint>        userList   = user.GetUsers();

            foreach (uint users in userList)
            {
                user.GetUserName(out string outfname, out string outlname);

                returnList.Add(new UserAccount()
                {
                    userId = users,
                    fname  = outfname,
                    lname  = outlname
                });
            }
            return(returnList);
        }