public Customer Retrieve(int customerId) { var customer = new Customer(customerId); if (customerId == 1) { customer.EmailAddress = "*****@*****.**"; customer.FirstName = "Frodo"; customer.LastName = "Baggins"; customer.AddressList = _addressRepository.RetriveByCustomerId(customerId).ToList(); } return(customer); }
public List <Address> GetAddressesByClientId(int clientId) { AddressRepository addressRepository = new AddressRepository(); return(addressRepository.RetriveByCustomerId(clientId).ToList()); }