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)); }
public async Task <CrossSellViewModel> GetCrossSellViewModelAsync(string promotionId, string shoppingCartLink) { var pop = await _offersApi.GetOffersAsync(promotionId).ConfigureAwait(false); return(MakeCrossSellViewModel(pop, _linkGenerator.GenerateShoppingCartLink())); }