예제 #1
0
        private static void SavePrices(EditProduct editProduct, int productID)
        {
            if (editProduct.Price.Price != 0)
            {
                var productPrice = new ProductPrice();

                productPrice.ProductID   = productID;
                productPrice.PriceType   = editProduct.Price.PriceType;
                productPrice.Price       = editProduct.Price.Price * (ExtensionMethods.IsRial ? 1 : 10);
                productPrice.Description = editProduct.Price.Description;

                ProductPrices.Insert(productPrice);
            }
        }