public async Task <IReadOnlyList <AirQualityDto> > GetAirQualityAsync() { var data = await _airQualityProvider.GetAirQualityAsync(); return(data.Select(x => new AirQualityDto { Value = x.Value }).ToList()); }
public async Task UpdateAirQualityCacheAsync() { var values = await _airQualityProvider.GetAirQualityAsync(); _cache.Set(CacheKeys.AirQualityKey, values, _cacheExpiration); }