public List <UserOrder> getUserOrders(string userName)
        {
            OrderDAO         dataLayer  = new OrderDAO();
            List <Order>     orders     = dataLayer.getUserOrders(userName);
            List <UserOrder> userOrders = new List <UserOrder>();

            foreach (Order order in orders)
            {
                UserOrder userOrder = new UserOrder();
                userOrder.orderId    = order.getOrderId();
                userOrder.orderTotal = getOrderTotal(order);

                userOrder.orderItems       = getUserOrderItems(order);
                userOrder.paymentAmount    = order.getPaymentAmount();
                userOrder.creditCardNumber = order.getPaymentInformation().getCreditCardNumber();
                userOrders.Add(userOrder);
            }

            return(userOrders);
        }
        public List<UserOrder> getUserOrders(string userName)
        {
            OrderDAO dataLayer = new OrderDAO();
            List<Order> orders = dataLayer.getUserOrders(userName);
            List<UserOrder> userOrders = new List<UserOrder>();

            foreach (Order order in orders)
            {
                UserOrder userOrder = new UserOrder();
                userOrder.orderId = order.getOrderId();
                userOrder.orderTotal = getOrderTotal(order);

                userOrder.orderItems = getUserOrderItems(order);
                userOrder.paymentAmount = order.getPaymentAmount();
                userOrder.creditCardNumber = order.getPaymentInformation().getCreditCardNumber();
                userOrders.Add(userOrder);
            }

            return userOrders;
        }