public UnifiedField GetUnifiedField(string fieldId, SearchFieldsType searchType)
        {
            bool core = searchType == SearchFieldsType.Core;

            var stringFields  = core ? CoreFields.StringFields : ChangedFields.StringFields;
            var integerFields = core ? CoreFields.IntegerFields : ChangedFields.IntegerFields;

            var          sfield = stringFields.FirstOrDefault(f => f.ReferenceName == fieldId);
            var          ifield = integerFields.FirstOrDefault(f => f.ReferenceName == fieldId);
            UnifiedField field  = null;

            if (sfield != null)
            {
                field = new UnifiedField(sfield);
            }
            else if (ifield != null)
            {
                field = new UnifiedField(ifield);
            }

            if (!string.IsNullOrEmpty(field?.NewValue) && (core || field.OldValue != field.NewValue))
            {
                return(field);
            }

            return(null);
        }
        public UnifiedField GetUnifiedField(string fieldId, SearchFieldsType searchType)
        {
            bool core = searchType == SearchFieldsType.Core;

            var stringFields = core ? CoreFields.StringFields : ChangedFields.StringFields;
            var integerFields = core ? CoreFields.IntegerFields : ChangedFields.IntegerFields;

            var sfield = stringFields.FirstOrDefault(f => f.ReferenceName == fieldId);
            var ifield = integerFields.FirstOrDefault(f => f.ReferenceName == fieldId);
            UnifiedField field = null;

            if (sfield != null)
            {
                field = new UnifiedField(sfield);
            }
            else if (ifield != null)
            {
                field = new UnifiedField(ifield);
            }

            if (!string.IsNullOrEmpty(field?.NewValue) && (core || field.OldValue != field.NewValue))
                return field;

            return null;
        }