public IActionResult OnPost() { if (!ModelState.IsValid) { return(Page()); } _peliculaRepository.Insert(Pelicula); return(RedirectToPage("./Peliculas")); }