Fix validation sample /4 (#22953)

pull/22958/head
Rick Anderson 2021-08-04 11:14:31 -07:00 committed by GitHub
parent 7d2bc2a788
commit 95582be7d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ namespace ValidationSample.Pages.Movies
var modifiedReleaseDate = DateTime.Now.Date;
Movie.ReleaseDate = modifiedReleaseDate;
ModelState.ClearValidationState(nameof(Movie)));
ModelState.ClearValidationState(nameof(Movie));
if (!TryValidateModel(Movie, nameof(Movie)))
{
return Page();