diff --git a/mvc/models/BindTryParseAPI/Controllers/WeatherForecastController.cs b/mvc/models/BindTryParseAPI/Controllers/WeatherForecastController.cs index d287d67..791d597 100644 --- a/mvc/models/BindTryParseAPI/Controllers/WeatherForecastController.cs +++ b/mvc/models/BindTryParseAPI/Controllers/WeatherForecastController.cs @@ -57,7 +57,8 @@ namespace BindTryParseAPI.Controllers TemperatureC = Random.Shared.Next(-20, 55), Summary = Summaries[Random.Shared.Next(Summaries.Length)] }) - .Where(wf => DateOnly.FromDateTime(wf.Date) >= (range?.From ?? DateOnly.MinValue) && DateOnly.FromDateTime(wf.Date) <= (range?.To ?? DateOnly.MaxValue)) + .Where(wf => DateOnly.FromDateTime(wf.Date) >= (range?.From ?? DateOnly.MinValue) + && DateOnly.FromDateTime(wf.Date) <= (range?.To ?? DateOnly.MaxValue)) .Select(wf => new WeatherForecastViewModel { Date = wf.Date.ToString(),