public void ProcessOrder(List <ShopCartLineDTO> cart, ShoppingDetailsDTO shoppingDetails, int businessEntityID, string email)
        {
            ShopCartItem    shopCart    = GetCartItem(cart);
            ShoppingDetails shopDetails = GetShoppingDetails(shoppingDetails);

            orderProcessor.ProcessOrder(shopCart, shopDetails, businessEntityID, email);
        }
        private ShoppingDetails GetShoppingDetails(ShoppingDetailsDTO details)
        {
            ShoppingDetails shoppingDetails = new ShoppingDetails {
                Address    = details.Address,
                City       = details.City,
                Country    = details.Country,
                PostalCode = details.PostalCode
            };

            return(shoppingDetails);
        }
        public ShoppingDetailsDTO Get(int businessEntityID)
        {
            var values = shoppingAddress.Get(businessEntityID);
            ShoppingDetailsDTO result = new ShoppingDetailsDTO
            {
                Country    = values.Country,
                City       = values.City,
                Address    = values.Address,
                PostalCode = values.PostalCode
            };

            return(result);
        }