foreach (var item in procode) { var reslit = LoadData((string)item.ProductCode.Trim(), item.product_id); if (reslit == null) { clearProduct.Add((string)item.ProductCode); continue; } } procode.RemoveAll(t => clearProduct.Contains(t.ProductCode));
foreach (var item in procode) { var reslit = LoadData((string)item.ProductCode.Trim(), item.product_id); if (reslit == null) { clearProduct.Add((string)item.ProductCode); continue; } } procode.RemoveAll(t => clearProduct.Contains(t.ProductCode));