public int?CreateAccount(NewAccount account) { if (account != null) { return(AccountDataLayer.CreateAccount(account.Customer, AccountDataLayer.GetInterestForType(account.AccountType))); } return(null); }
public Account[] GetAccount(int id, string getby) { switch (getby) { case "customer": return(AccountDataLayer.GetAllAccounts(id)); case "account": default: return(AccountDataLayer.GetAccount(id)); } }
public bool DeleteAccount(int account) { return(AccountDataLayer.DeleteAccount(account)); }