public async Task <IEnumerable <WeatherForecast> > Get() { return(await _forecastRepository.GetALl()); var rng = new Random(); return(Enumerable.Range(0, 7).Select(index => new WeatherForecast { Date = DateTime.Now.AddDays(index).DayOfWeek.ToString(), TemperatureC = rng.Next(-20, 55), Summary = Summaries[rng.Next(Summaries.Length)] }) .ToArray()); }