Esempio n. 1
0
        public List <CustomersModel> GetCustomers()
        {
            CustomerDetailDao     customerDetailDao = new CustomerDetailDao();
            List <CustomersModel> customers         = customerDetailDao.GetCustomers();

            return(customers);
        }
Esempio n. 2
0
 public bool EditAddress(int id, string address)
 {
     try
     {
         //throw new ArgumentException("驗證錯誤");
         CustomerDetailDao customerDetailDao = new CustomerDetailDao();
         return(customerDetailDao.EditAddress(id, address));
     }
     catch (Exception ex)
     {
         throw;
     }
 }
Esempio n. 3
0
 public bool EditPhoneNumber(int id, string phone)
 {
     try
     {
         //throw new ArgumentException("驗證錯誤");
         CustomerDetailDao customerDetailDao = new CustomerDetailDao();
         return(customerDetailDao.EditPhoneNumber(id, phone));
     }
     catch (Exception ex)
     {
         throw;
     }
 }