Exemplo n.º 1
0
        private IList <BasketItem> GetBasketItems()
        {
            Basket basket = AbleContext.Current.User.Basket;

            if (!_Recalculated)
            {
                IBasketService preCheckoutService = AbleContext.Resolve <IBasketService>();
                preCheckoutService.Recalculate(basket);
                preCheckoutService.Combine(basket);
                _Recalculated = true;
            }
            _DisplayedBasketItems = BasketHelper.GetDisplayItemsForInvoice(basket, false);
            return(_DisplayedBasketItems);
        }