Esempio n. 1
0
 public ActionResult AddBook(Book newBook)
 {
     if (ModelState.IsValid)
     {
         DataManager dataMng = new DataManager();
         dataMng.AddBook(newBook);
         return(RedirectToAction("Index", "Home"));
     }
     else
     {
         return(View());
     }
 }