Exemplo n.º 1
0
        public static List <string> getAllInfoAccunts()
        {
            List <string> lc = new List <string>();

            using (var context = new MitBankDBEntities())
            {
                var result = context.showAllMyAccounts(IDSession);

                foreach (var item in result)
                {
                    var result2 = context.showIBANInformations(item.ToString()).ToArray();

                    foreach (var item2 in result2)
                    {
                        string info = item.ToString();

                        info = item2.ID + "       " + info + "       " + "       " + item2.BankPacket + "       " + item2.ValabilityUntil +
                               "       " + item2.Sold + "       " + item2.Currency;
                        lc.Add(info);
                    }
                }
            }


            return(lc);
        }
Exemplo n.º 2
0
        public static List <string> getDashboardInfo()
        {
            List <string> list = new List <string>();

            using (var context = new MitBankDBEntities())
            {
                var conturi = context.showAllMyAccounts(IDSession).ToArray();
                foreach (var item in conturi)
                {
                    list.Add(item.ToString());
                }
            }
            return(list);
        }
Exemplo n.º 3
0
        public static List <Page> getIbanList()
        {
            List <Page> listIban = new List <Page>();

            using (var context = new MitBankDBEntities())
            {
                if (IDSession != 0)
                {
                    var result = context.showAllMyAccounts(IDSession).ToArray();
                    foreach (var item in result)
                    {
                        Page pg = new Page();
                        pg.Data = item.ToString();
                        listIban.Add(pg);
                    }
                }
            }

            return(listIban);
        }