diff --git a/RazorPages/models/ModelStateError/Pages/Contacts/Create.cshtml.cs b/RazorPages/models/ModelStateError/Pages/Contacts/Create.cshtml.cs index e64e1b3..4acf916 100644 --- a/RazorPages/models/ModelStateError/Pages/Contacts/Create.cshtml.cs +++ b/RazorPages/models/ModelStateError/Pages/Contacts/Create.cshtml.cs @@ -23,6 +23,7 @@ namespace ModelStateError // To protect from overposting attacks, see https://aka.ms/RazorPagesCRUD + // public async Task OnPostAsync() { // Attach Validation Error Message to the Model on validation failure. @@ -49,5 +50,6 @@ namespace ModelStateError return RedirectToPage("./Index"); } + // } }