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