示例#1
0
        public async Task <Organization[]> GetByQueryAsync(string query)
        {
            var cachedOrgs = await CacheRepository.FindByQuery(query);

            if (cachedOrgs.Any())
            {
                return(cachedOrgs);
            }

            await UpsertAsync(query, findById : false);

            return(await CacheRepository.FindByQuery(query));
        }