Пример #1
0
 public int GetAccountBalance(int accountNumber)
 {
     int balance;
     DALMngr dalMngr = new DALMngr();
     balance = dalMngr.GetAccountBalance(accountNumber);
     return balance;
 }
Пример #2
0
 public int GetAccountID(int accountNumber)
 {
     int accID;
     DALMngr dalMngr = new DALMngr();
     accID = dalMngr.GetAccountID(accountNumber);
     return accID;
 }
Пример #3
0
 public DataSet GetCustomerAccounts()
 {
     DataSet ds = null;
     DALMngr dalManager = new DALMngr();
     try
     {
         ds = dalManager.GetCustomerAccounts();
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return ds;
 }
Пример #4
0
 public DataSet AuditAccount(int id)
 {
     DataSet ds = null;
     DALMngr dalMngr = new DALMngr();
     try
     {
         ds = dalMngr.AuditAccount(id);
     }
     catch(Exception ex)
     {
         throw ex;
     }
     return ds;
 }
Пример #5
0
 public DataTable GetFullAccountDetails(int accountID)
 {
     DataTable dt = null;
     DALMngr dalManager = new DALMngr();
     try
     {
         dt = dalManager.GetFullCustomerDetails(accountID);
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return dt;
 }
Пример #6
0
 public void CreateTransfer(int credID, int debID, TransferModel transfer)
 {
     DALMngr dalMngr = new DALMngr();
     dalMngr.CreateTransfer(credID, debID, transfer);
 }
Пример #7
0
 public void CreateTransaction(TransactionModel newTransaction)
 {
     DALMngr dalMngr = new DALMngr();
     dalMngr.CreateTransaction(newTransaction);
     TransactionID = dalMngr.TransactionID;
 }
Пример #8
0
 // Taking Objects from AddCustomer //
 public void CreateCustomerAccount(CustomerModel newCustomer, AccountModel newAccount, TransactionModel newTransaction)
 {
     // Sending to DAL //
     DALMngr dalMngr = new DALMngr();
     dalMngr.CreateCustomerAccount(newCustomer, newAccount, newTransaction);
 }
Пример #9
0
 public void UpdateCustomersAccount(CustomerModel customer, AccountModel account)
 {
     DALMngr dalMngr = new DALMngr();
     dalMngr.UpdateCustomersAccount(customer, account);
 }
Пример #10
0
 public void UpdateAccountBalance(AccountModel accountToUpdate)
 {
     DALMngr dalMngr = new DALMngr();
     dalMngr.UpdateAccountBalance(accountToUpdate);
 }
Пример #11
0
 public bool IsValidLogin(UserModel userDetails)
 {
     bool isValid;
     bool valid;
     DALMngr dalMngr = new DALMngr();
     valid = dalMngr.IsValidLogin(userDetails);
     if(valid)
     {
         isValid = true;
     }
     else
     {
         isValid = false;
     }
     return isValid;
 }