public static bool CheckDiscountCriteriaCodeExists(string[] ADiscountCriteriaCode) { TDBTransaction ReadTransaction = new TDBTransaction(); Boolean CriteriaCodeExists = true; DBAccess.ReadTransaction(ref ReadTransaction, delegate { foreach (string CriteriaCode in ADiscountCriteriaCode) { if (!PcDiscountCriteriaAccess.Exists(CriteriaCode, ReadTransaction)) { CriteriaCodeExists = false; break; } } }); return(CriteriaCodeExists); }
public static bool CheckDiscountCriteriaCodeExists(string[] ADiscountCriteriaCode) { TDBTransaction ReadTransaction = null; Boolean CriteriaCodeExists = true; DBAccess.GDBAccessObj.GetNewOrExistingAutoReadTransaction(IsolationLevel.ReadCommitted, TEnforceIsolationLevel.eilMinimum, ref ReadTransaction, delegate { foreach (string CriteriaCode in ADiscountCriteriaCode) { if (!PcDiscountCriteriaAccess.Exists(CriteriaCode, ReadTransaction)) { CriteriaCodeExists = false; break; } } }); return(CriteriaCodeExists); }