private async Task <IList <PCSPlant> > GetAllPlantsForUserAsync(Guid userOid) => await _cacheManager.GetOrCreate( PlantsCacheKey(userOid), async() => { var plants = await _plantApiService.GetAllPlantsAsync(); return(plants); }, CacheDuration.Minutes, _options.CurrentValue.PlantCacheMinutes);
public async Task <IList <PCSPlant> > GetPlantsFromMain() { var plants = await _plantApiService.GetAllPlantsAsync(); return(plants); }