コード例 #1
0
        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);
        }
コード例 #2
0
        //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);
        }
コード例 #3
0
 public CustomerRepository()
 {
     addressRepository = new AddressRepository();
     addressRepository.RetrieveByCustomerId(1);
 }