public List <CustomersModel> GetCustomers() { CustomerDetailDao customerDetailDao = new CustomerDetailDao(); List <CustomersModel> customers = customerDetailDao.GetCustomers(); return(customers); }
public bool EditAddress(int id, string address) { try { //throw new ArgumentException("驗證錯誤"); CustomerDetailDao customerDetailDao = new CustomerDetailDao(); return(customerDetailDao.EditAddress(id, address)); } catch (Exception ex) { throw; } }
public bool EditPhoneNumber(int id, string phone) { try { //throw new ArgumentException("驗證錯誤"); CustomerDetailDao customerDetailDao = new CustomerDetailDao(); return(customerDetailDao.EditPhoneNumber(id, phone)); } catch (Exception ex) { throw; } }