Пример #1
0
        public ActionResult GetProductSkusForDiscount(long ProductId)
        {
            List <ProductDTO> fullSkus = _discountService.GetProductSKUs(ProductId, CurrentLanguage, CurrentCurrency);

            Mapper.Initialize(c => c.CreateMap <ProductDTO, ProductSKUDTO>());
            List <ProductSKUDTO> skus = Mapper.Map <List <ProductDTO>, List <ProductSKUDTO> >(fullSkus);

            return(Json(skus));
        }