public virtual async Task InsertProductTierPrice(ProductDto product, ProductTierPriceDto model) { var tierPrice = model.ToEntity(); tierPrice.ProductId = product.Id; await _productService.InsertTierPrice(tierPrice); }
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); }