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); } }
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); } }