예제 #1
0
 public IActionResult OnPost()
 {
     if (!ModelState.IsValid)
     {
         dataAcces.UpdateAuthor(Author);
         return(RedirectToPage("Administration"));
     }
     else
     {
         return(RedirectToPage("/Error"));
     }
 }