Exemple #1
0
 public IActionResult OnPost()
 {
     if (!ModelState.IsValid)
     {
         return(Page());
     }
     _libroRepository.Insert(Libro);
     return(RedirectToPage("./Libros"));
 }