From 5af333f9bbaf94596e222ca4d22fdb354adaa45b Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Mon, 18 Jul 2022 16:10:55 -1000 Subject: [PATCH] format sample (#11) --- .../BindTryParseAPI/Controllers/WeatherForecastController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(),