Ejemplo n.º 1
0
        public Customer getCustomerData(String custName, int custPin)
        {
            Atm_DAL  ob         = new Atm_DAL();
            Customer cutomerObj = ob.getCustomer(custName, custPin);

            return(cutomerObj);
        }
Ejemplo n.º 2
0
        public List <Customer> viewReport(int min, int max)
        {
            Atm_DAL         dal_ob = new Atm_DAL();
            List <Customer> list   = dal_ob.getReports(min, max);

            return(list);
        }
Ejemplo n.º 3
0
        public string getCustmrName(int accNum)
        {
            Atm_DAL ob          = new Atm_DAL();
            string  cutomerName = ob.getName(accNum);

            return(cutomerName);
        }
Ejemplo n.º 4
0
        public bool DepositCash(Customer customer, int money)
        {
            Atm_DAL ob    = new Atm_DAL();
            bool    check = ob.DepositInFile(customer, money);

            return(check);
        }
Ejemplo n.º 5
0
        public bool cashTransfer(Customer customer, int money, int accNum)
        {
            Atm_DAL ob    = new Atm_DAL();
            bool    check = ob.TransCash(customer, money, accNum);

            return(check);
        }
Ejemplo n.º 6
0
        public bool Withdraw(Customer customer, int money)
        {
            Atm_DAL ob    = new Atm_DAL();
            bool    check = ob.WithdrawFromFile(customer, money);

            return(check);
        }
Ejemplo n.º 7
0
        public double deleteCustomer(int accNo)
        {
            Atm_DAL ob        = new Atm_DAL();
            double  accNumber = ob.deleteAccount(accNo);

            return(accNumber);
        }
Ejemplo n.º 8
0
        public bool updateCustomer(double accNo, Customer ob)
        {
            Atm_DAL dalOb = new Atm_DAL();
            bool    check = dalOb.updateAccount(accNo, ob);

            return(check);
        }
Ejemplo n.º 9
0
        public List <Customer> searchCustomer(Customer ob)
        {
            Atm_DAL         dal_ob = new Atm_DAL();
            List <Customer> list   = dal_ob.searchAccount(ob);

            return(list);
        }
Ejemplo n.º 10
0
        public void CreateCustomer(Customer bo)
        {
            Atm_DAL ob = new Atm_DAL();

            ob.SaveToFile(bo);
        }