Exemplo n.º 1
0
 public IActionResult NewAuthor(Author author)
 {
     if (ModelState.IsValid)
     {
         AuthorFactory.NewAuthor(author);
         return(RedirectToAction("Index"));
     }
     else
     {
         return(View("Index"));
     }
 }