예제 #1
0
 public int?CreateAccount(NewAccount account)
 {
     if (account != null)
     {
         return(AccountDataLayer.CreateAccount(account.Customer, AccountDataLayer.GetInterestForType(account.AccountType)));
     }
     return(null);
 }
예제 #2
0
        public Account[] GetAccount(int id, string getby)
        {
            switch (getby)
            {
            case "customer":
                return(AccountDataLayer.GetAllAccounts(id));

            case "account":
            default:
                return(AccountDataLayer.GetAccount(id));
            }
        }
예제 #3
0
 public bool DeleteAccount(int account)
 {
     return(AccountDataLayer.DeleteAccount(account));
 }