public static List<Account> GetAllAccounts() { List<Account> accounts = new List<Account>(); SqlAccountProvider sqlAccountProvider = new SqlAccountProvider(); accounts = sqlAccountProvider.GetAllAccounts(); return accounts; }
public static Account GetAccountByID(int id) { Account account = new Account(); SqlAccountProvider sqlAccountProvider = new SqlAccountProvider(); account = sqlAccountProvider.GetAccountByID(id); return account; }
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; }
public static bool UpdateAccount(Account account) { SqlAccountProvider sqlAccountProvider = new SqlAccountProvider(); return sqlAccountProvider.UpdateAccount(account); }
public static int InsertAccount(Account account) { SqlAccountProvider sqlAccountProvider = new SqlAccountProvider(); return sqlAccountProvider.InsertAccount(account); }
public static bool DeleteAccount(int accountID) { SqlAccountProvider sqlAccountProvider = new SqlAccountProvider(); return sqlAccountProvider.DeleteAccount(accountID); }