Example #1
0
        public async Task <RetsLookupTypeCollection> GetLookupType(IRetsClient session, string lookupName)
        {
            var lookupTypes = await GetLookupTypes(session);

            RetsLookupTypeCollection lookupType = lookupTypes.FirstOrDefault(x => x.Lookup.Equals(lookupName, StringComparison.CurrentCultureIgnoreCase));

            return(lookupType);
        }
Example #2
0
        public async Task <RetsLookupTypeCollection> GetLookupTypes(IRetsClient session, string resourceId)
        {
            if (LookupTypes == null && Interpretation.StartsWith("Lookup", StringComparison.CurrentCultureIgnoreCase))
            {
                LookupTypes = await session.GetLookupValues(resourceId, SystemName);
            }

            return(LookupTypes);
        }