From f5e8acaf1bd3d85808480fd463eeb394913fe1d9 Mon Sep 17 00:00:00 2001 From: Rick Anderson <3605364+Rick-Anderson@users.noreply.github.com> Date: Thu, 14 Jul 2022 13:30:14 -1000 Subject: [PATCH] Update DateRange.cs --- mvc/models/BindTryParseAPI/Models/DateRange.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mvc/models/BindTryParseAPI/Models/DateRange.cs b/mvc/models/BindTryParseAPI/Models/DateRange.cs index f7d3159..1f939b3 100644 --- a/mvc/models/BindTryParseAPI/Models/DateRange.cs +++ b/mvc/models/BindTryParseAPI/Models/DateRange.cs @@ -17,7 +17,8 @@ namespace BindTryParseAPI.Models To = DateOnly.Parse(to); } - public static bool TryParse(string? value, IFormatProvider? provider, out DateRange? result) + public static bool TryParse(string? value, IFormatProvider? provider, + out DateRange? result) { if (string.IsNullOrEmpty(value) || value.Split('-').Length != 2) {