Update DateRange.cs
parent
25c92daa1a
commit
f5e8acaf1b
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue