예제 #1
0
        public CustomerDetails2 Retrieve(int customerID)
        {
            //Create the instance of the Customer class
            //Pass in the requested ID
            CustomerDetails2 customer = new CustomerDetails2(customerID);

            //Code for retrieving the defined customer

            //Temporary hard-coded values to return
            //Example of a populated customer
            if (customerID == 1)
            {
                customer.EmailAdrress = "*****@*****.**";
                customer.FirstName    = "Bobo ";
                customer.LastName     = "Smrad";
                customer.AddressList  = addressRepository.RetrieveByCustomerID(customerID).ToList();
            }
            return(customer);
        }
예제 #2
0
 public bool Save(CustomerDetails2 customer)
 {
     //Saves the passed in customer
     return(true);
 }