Esempio n. 1
0
 public ActionResult AddAuthor(Author author)
 {
     if (ModelState.IsValid)
     {
         authorBLL.Add(author);
         return(RedirectToAction("Index"));
     }
     else
     {
         return(View("Index", author));
     }
 }