Beispiel #1
0
        public Account[] GetAllAccounts()
        {
            var            accountBLL = _bll.GetAllAccounts();
            List <Account> accountsDC = new List <Account>();

            foreach (var item in accountBLL)
            {
                Account temp = new Account
                {
                    Login    = item.Login,
                    Password = item.Password,
                };
                accountsDC.Add(temp);
            }
            return(accountsDC.ToArray());
        }