Exemplo n.º 1
0
        private void CalcProductFraction(List <int> productIdList)
        {
            if (productIdList.Count == 0)
            {
                return;
            }

            try
            {
                string productIds = string.Join <int>(",", productIdList);

                Dictionary <string, decimal> productFractions = ProductHelper.CalculateProductFraction(productIds);

                ProductHelper.UpdateProductFractions(productFractions);
            }
            catch
            { }
        }