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); }
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); }