diff --git a/aspnetcore/mvc/models/validation/samples/3.x/ValidationSample/Pages/Movies/Create.cshtml.cs b/aspnetcore/mvc/models/validation/samples/3.x/ValidationSample/Pages/Movies/Create.cshtml.cs index efae20ea92..5f11d53447 100644 --- a/aspnetcore/mvc/models/validation/samples/3.x/ValidationSample/Pages/Movies/Create.cshtml.cs +++ b/aspnetcore/mvc/models/validation/samples/3.x/ValidationSample/Pages/Movies/Create.cshtml.cs @@ -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();