//****************** ACCOUNTS DGV *************** public DataSet GetAllAccountsBLL() { DALAccountMgmt dalAM = new DALAccountMgmt(); DataSet ds = dalAM.GetAllAccountsDAL(); return(ds); }
public bool CheckLoginBLL(Staff stf) { bool success = false; DALAccountMgmt dalAM = new DALAccountMgmt(); try { success = dalAM.CheckLoginDAL(stf); } catch (Exception ex) { throw; } return(success); }
//edit holder public bool EditAccHolderBLL(AccountHolder ah) { bool success = false; DALAccountMgmt dalAM = new DALAccountMgmt(); try { success = dalAM.EditAccHolderDAL(ah); } catch (Exception ex) { throw; } return(success); }
//edit account public bool EditAccountBLL(Account acc) { bool success = false; DALAccountMgmt dalAM = new DALAccountMgmt(); try { success = dalAM.EditAccountDAL(acc); } catch (Exception ex) { throw; } return(success); }
// *************** EDIT ACCOUNT **************** //get account details public Account GetAccountDetailsBLL(int accNum) { Account acc; DALAccountMgmt dalAM = new DALAccountMgmt(); try { acc = dalAM.GetAccountDetailsDAL(accNum); } catch (Exception ex) { throw; } return(acc); }
//new account public bool AddNewAccountBLL(Account acc, int holderID) { bool success = false; DALAccountMgmt dalAM = new DALAccountMgmt(); try { success = dalAM.AddNewAccountDAL(acc, holderID); } catch (Exception ex) { throw; } return(success); }
//************* CREATE NEW HOLDER AND ACCOUNT ************** public AccountHolder GetAccHolderDetailsBLL(int accHolderID) { AccountHolder ah; DALAccountMgmt dalAM = new DALAccountMgmt(); try { ah = dalAM.GetAccHolderDetailsDAL(accHolderID); } catch (Exception ex) { throw; } return(ah); }