Beispiel #1
0
        private void WorkerEditDoWork(object sender, DoWorkEventArgs e)
        {
            var product = (ProductType)e.Argument;

            RepositoryProduct.Update(product);
            RepositoryProduct.UpdateProductPrice(product);

            if (RepositoryAccountUser.LoginedUser.Role.IsPermiss(Privelege.RedactStockCount))
            {
                var stockReal = RepositoryStockReal.GetByProduct(product);
                RepositoryStockReal.UpdateProductCount(_stockRealCount, stockReal.CustomerId);
            }
        }