public Customer Retrieve(int customerId) { var customer = new Customer(customerId); customer.AddressList = addressRepository.RetrieveByCustomerId(customerId).ToList(); if (customerId == 1) { customer.EmailAddress = "*****@*****.**"; customer.FirstName = "prottoy"; customer.LastName = "roy"; } return(customer); }
//temp code public Customer Retrieve(int customerId) { Customer customer = new Customer(customerId); if (customerId == 1) { customer.EmailAddress = "*****@*****.**"; customer.FirstName = "Frodo"; customer.LastName = "Baggins"; customer.AddressList = ar.RetrieveByCustomerId(customerId).ToList(); } return(customer); }
public CustomerRepository() { addressRepository = new AddressRepository(); addressRepository.RetrieveByCustomerId(1); }