|
|
@ -21,6 +21,8 @@ namespace AspNetCoreApi.Controllers |
|
|
|
[HttpGet(Name = "GetWeatherForecast")] |
|
|
|
[HttpGet(Name = "GetWeatherForecast")] |
|
|
|
public IEnumerable<WeatherForecast> Get() |
|
|
|
public IEnumerable<WeatherForecast> Get() |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
Console.WriteLine("Call controller"); |
|
|
|
|
|
|
|
|
|
|
|
return Enumerable.Range(1, 5).Select(index => new WeatherForecast |
|
|
|
return Enumerable.Range(1, 5).Select(index => new WeatherForecast |
|
|
|
{ |
|
|
|
{ |
|
|
|
Date = DateOnly.FromDateTime(DateTime.Now.AddDays(index)), |
|
|
|
Date = DateOnly.FromDateTime(DateTime.Now.AddDays(index)), |
|
|
|