コード例 #1
0
        public Customer getCustomer(string id)
        {
            try
            {
                customerDAO = new CustomerDAO();
                Customer customer = customerDAO.getCustomer(id);

                AddressDAO addressDAO = new AddressDAO();
                customer.address = addressDAO.getCustomerAddress(id);

                return customer;
            }
            catch (BusinessException e)
            {
                throw e;
            }
            catch (PlatformException e)
            {
                throw e;
            }
            catch (Exception e)
            {
                throw new PlatformException(e.Message);
            }
        }
コード例 #2
0
 public string updateAddress(Address address)
 {
     try
     {
         AddressDAO addressDAO = new AddressDAO();
         return addressDAO.updateAddress(address);
     }
     catch (BusinessException e)
     {
         throw e;
     }
     catch (PlatformException e)
     {
         throw e;
     }
     catch (Exception e)
     {
         throw new PlatformException(e.Message);
     }
 }