Exemplo n.º 1
0
        public ActionResult GetBannerBySkuAttributeOption(long skuAttributeOptionId)
        {
            var shopId = CommerceContext.Shop.CurrentShop.Id;
            var banner = _productCategoriesService.GetBannerForFrontendBySkuAttributeOption(skuAttributeOptionId, shopId);

            if (banner == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.NoContent));
            }

            return(Content(banner.BannerHtml, "text/html"));
        }