Ejemplo n.º 1
0
 public ActionResult Create(Author author)
 {
     try
     {
         // TODO: Add insert logic here
         AuthorDAL autdal = new AuthorDAL();
         autdal.Create(author);
         return(RedirectToAction("Index"));
     }
     catch (Exception ex)
     {
         ViewBag.Error = ex.Message;
         return(View());
     }
 }