mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
Working React+Redux template
This commit is contained in:
@@ -15,12 +15,12 @@ namespace WebApplicationBasic.Controllers
|
||||
};
|
||||
|
||||
[HttpGet, Route("[action]")]
|
||||
public IEnumerable<WeatherForecast> WeatherForecasts()
|
||||
public IEnumerable<WeatherForecast> WeatherForecasts(int startDateIndex)
|
||||
{
|
||||
var rng = new Random();
|
||||
return Enumerable.Range(1, 5).Select(index => new WeatherForecast
|
||||
{
|
||||
DateFormatted = DateTime.Now.AddDays(index).ToString("d"),
|
||||
DateFormatted = DateTime.Now.AddDays(index + startDateIndex).ToString("d"),
|
||||
TemperatureC = rng.Next(-20, 55),
|
||||
Summary = Summaries[rng.Next(Summaries.Length)]
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user