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