Exemplo n.º 1
0
 public static List<Account> GetAllAccounts()
 {
     List<Account> accounts = new List<Account>();
     SqlAccountProvider sqlAccountProvider = new SqlAccountProvider();
     accounts = sqlAccountProvider.GetAllAccounts();
     return accounts;
 }
Exemplo n.º 2
0
 public static Account GetAccountByID(int id)
 {
     Account account = new Account();
     SqlAccountProvider sqlAccountProvider = new SqlAccountProvider();
     account = sqlAccountProvider.GetAccountByID(id);
     return account;
 }
Exemplo n.º 3
0
 public static List<Account> CUCTEST_GetAmountByS_ID(string s_id)
 {
     List<Account> accounts = new List<Account>();
     SqlAccountProvider sqlAccountProvider = new SqlAccountProvider();
     accounts = sqlAccountProvider.CUCTEST_GetAmountByS_ID(s_id);
     return accounts;
 }
Exemplo n.º 4
0
 public static bool UpdateAccount(Account account)
 {
     SqlAccountProvider sqlAccountProvider = new SqlAccountProvider();
     return sqlAccountProvider.UpdateAccount(account);
 }
Exemplo n.º 5
0
 public static int InsertAccount(Account account)
 {
     SqlAccountProvider sqlAccountProvider = new SqlAccountProvider();
     return sqlAccountProvider.InsertAccount(account);
 }
Exemplo n.º 6
0
 public static bool DeleteAccount(int accountID)
 {
     SqlAccountProvider sqlAccountProvider = new SqlAccountProvider();
     return sqlAccountProvider.DeleteAccount(accountID);
 }