Example #1
0
 public ActionResult Delete(int id)
 {
     try
     {
         autorBLL.Deletar(id);
         return(RedirectToAction("Index"));
     }
     catch (Exception ex)
     {
         ViewBag.Exception = ex.Message;
         return(View(autorBLL.Detalhar(id)));
     }
 }