Example #1
0
        /* Method will get a fully populated order, based on a supplied customer last name,
         * complete with a customer object and a list of inventory item objects*/
        public List <Order> GetOrdersByLastName(string lastName)
        {
            // Translate partially populated order list into a business object list
            List <Order> orders = Translators.Order.ToBusinessObject(_dataAccessObjects.GetOrderByLastName(lastName));

            // Send partially populated order list to become fully populated with [customer & address], [inventory item & catalog item]
            List <Order> orderList = PopulateOrders(orders);

            return(orderList);
        }