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