protected override async Task <IEnumerable <WeatherForecast> > ExecuteInDb(string request) { var result = await _ambassador.Get <IEnumerable <WeatherForecast> >("WeatherForecast"); await _cache.Save(result.ToArray(), typeof(WeatherForecast).Name); return(result); }
public async Task <IActionResult> GetWeatherData() { return(new JsonResult(await _ambassador.Get <IEnumerable <WeatherForecast> >("WeatherForecast"))); }