Esempio n. 1
0
        public async Task <OfferListViewModel> GetOfferListAsync(OfferListPart offerListPart)
        {
            if (String.IsNullOrEmpty(offerListPart.PopName))
            {
                return(new OfferListViewModel());
            }
            var offers = await _offersApi.GetOffersAsync(offerListPart.PopName).ConfigureAwait(false);

            return(OffersToOfferListViewModel(offerListPart, offers));
        }
Esempio n. 2
0
        public async Task <CrossSellViewModel> GetCrossSellViewModelAsync(string promotionId, string shoppingCartLink)
        {
            var pop = await _offersApi.GetOffersAsync(promotionId).ConfigureAwait(false);

            return(MakeCrossSellViewModel(pop, _linkGenerator.GenerateShoppingCartLink()));
        }