Beispiel #1
0
        /// <summary>
        /// Check if fuzzy company macthing is done 
        /// </summary>
        /// <param name="ImportFileId"></param>
        /// <param name="FuzzyLookupAccountIds"></param>
        /// <returns></returns>
        public static CTProcessedFuzzyLookupAccount CheckProcessedFuzzyMatchesCompanies(int ImportFileId)
        {
            CTProcessedFuzzyLookupAccount _item = null;
            using (BrightPlatformEntities objDbModel = new BrightPlatformEntities(UserSession.EntityConnection)) {
                _item = objDbModel.FICheckProcessedFuzzyLookupAccounts(ImportFileId).FirstOrDefault();
                if (_item != null) {
                    if (_item.items_processed == _item.total_items)
                        objDbModel.FIUpdateFuzzyMatchCompanyReferences(ImportFileId);
                }
            }

            return _item;
        }