Esempio n. 1
0
 public ActionResult AddAuthor(Author newAuthor)
 {
     if (newAuthor.Name != null)
     {
         DataManager dataMng = new DataManager();
         dataMng.AddAuthor(newAuthor);
         return(RedirectToAction("Authors", "Home"));
     }
     else
     {
         return(View());
     }
 }