public List <string> fromDD()//all the from account { List <string> l = new List <string>(); AccountC inter = new AccountC(); List <Account> c = inter.AccountList(); foreach (var v in c) { l.Add(v.AccountNum); } return(l); }
public List <string> toDD()//all the to account { List <string> l = new List <string>(); AccountC inter = new AccountC(); List <Account> c = inter.AccountList(); foreach (var v in c) { if (v.Kind != "Credit") { l.Add(v.AccountNum); } } return(l); }
public List <Account> AccountList() { AccountC c = new AccountC(); return(c.AccountList()); }
public List <Account> AllAccounts() { return(inter.AccountList()); }