public ActionResult Index(QuickBuyBlock currentBlock) { var tag = ControllerContext.ParentActionViewContext.ViewData["tag"] as string; _logger.Warning("Tag = " + (tag ?? "Tag is empty")); var cookieModel = _cookieService.GetFromCookie(); QuickBuyViewModel model = new QuickBuyViewModel(cookieModel); model = _modelBuilder.Build(currentBlock, model); if (string.IsNullOrEmpty(currentBlock.PromotionId) == false || string.IsNullOrEmpty(currentBlock.PromotionName) == false) { _googleAnalyticsTracker.TrackPromotionImpression(currentBlock.PromotionId, currentBlock.PromotionName, currentBlock.PromotionBannerName); } if (tag == WebGlobal.ContentAreaTags.FullWidth) { return(PartialView("FullWidth", model)); } if (tag == WebGlobal.ContentAreaTags.HalfWidth || tag == WebGlobal.ContentAreaTags.OneThirdWidth) { return(PartialView("Narrow", model)); } return(PartialView(model)); }
public override ActionResult Index(BannerBlock currentBlock) { if (string.IsNullOrEmpty(currentBlock.PromotionId) == false || string.IsNullOrEmpty(currentBlock.PromotionName) == false) { _googleAnalyticsTracker.TrackPromotionImpression(currentBlock.PromotionId, currentBlock.PromotionName, currentBlock.PromotionBannerName); } return(View("_bannerblock", currentBlock)); }