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

            tierPrice.ProductId = product.Id;
            await _productService.InsertTierPrice(tierPrice);
        }
예제 #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);
        }