Update Create.cshtml.cs

pull/129/head
Rick Anderson 2023-03-02 14:07:32 -10:00 committed by GitHub
parent 62c34e379a
commit 75c749ddce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -23,6 +23,7 @@ namespace ModelStateError
// To protect from overposting attacks, see https://aka.ms/RazorPagesCRUD
// <snippet_1>
public async Task<IActionResult> OnPostAsync()
{
// Attach Validation Error Message to the Model on validation failure.
@ -49,5 +50,6 @@ namespace ModelStateError
return RedirectToPage("./Index");
}
// </snippet_1>
}
}