public void GetAllAccounts()
        {
            AccountService.AccountService service = new AccountService.AccountService();
            var all = service.GetAllAccounts();

            foreach (ProxyAccount a in all)
            {
                if (a.ParentID == "573b99ed-bf50-e511-80ee-3863bb2eb8d8")
                {
                    Console.WriteLine(string.Format("{0} - {1}", a.AccountName, a.EntityRole));
                }
            }

            Console.ReadLine();
        }
        public List <ProxyAccount> GetAccountsByParentIDAndRole(string parentId, string role)
        {
            AccountService.AccountService service = new AccountService.AccountService();
            List <ProxyAccount>           accs    = new List <ProxyAccount>();
            var all = service.GetAllAccounts();

            foreach (ProxyAccount a in all)
            {
                if (a.ParentID == parentId && a.EntityRole == role)
                {
                    accs.Add(a);
                }
            }

            return(accs);
        }
        public void GetAllAccounts()
        {
            AccountService.AccountService service = new AccountService.AccountService();
            var all = service.GetAllAccounts();

            foreach (ProxyAccount a in all)
            {
                if (a.ParentID == "573b99ed-bf50-e511-80ee-3863bb2eb8d8")
                {
                    Console.WriteLine(string.Format("{0} - {1}", a.AccountName, a.EntityRole));

                }
            }

            Console.ReadLine();
        }
        public List<ProxyAccount> GetAccountsByParentIDAndRole(string parentId, string role)
        {
            AccountService.AccountService service = new AccountService.AccountService();
            List<ProxyAccount> accs = new List<ProxyAccount>();
            var all = service.GetAllAccounts();

            foreach (ProxyAccount a in all)
            {
                if (a.ParentID == parentId && a.EntityRole == role)
                {
                    accs.Add(a);
                }
            }

            return accs;
        }