Exemple #1
0
        public virtual async Task InsertProductTierPrice(ProductDto product, ProductTierPriceDto model)
        {
            var tierPrice = model.ToEntity();

            tierPrice.ProductId = product.Id;
            await _productService.InsertTierPrice(tierPrice);
        }
Exemple #2
0
        public virtual async Task UpdateProductTierPrice(ProductDto product, ProductTierPriceDto model)
        {
            var productdb = await _productService.GetProductById(product.Id);

            var tierPrice = model.ToEntity();

            tierPrice.ProductId = product.Id;
            await _productService.UpdateTierPrice(tierPrice);
        }