Exemple #1
0
        /* Method will get a fully populated order, based on a supplied Order Status type,
         * complete with a customer object and a list of inventory item objects*/
        public List <Order> GetOrdersByOrderStatus(BusinessLayer.Enumerations.OrderStatus orderStatus)
        {
            // Translate partially populated order list into a business object list
            List <Order> orders = Translators.Order.ToBusinessObject(_dataAccessObjects.GetByOrderStatusId((int)orderStatus));

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

            return(orderList);
        }