public ActionResult Create(AutorDTO autor) { try { if (ModelState.IsValid) { autorBLL.Inserir(autor); return(RedirectToAction("Index")); } return(View(autor)); } catch (Exception) { return(View(autor)); } }
public ActionResult Create(AutorDTO autor) { try { if (ModelState.IsValid) { autorBLL.Inserir(autor); return(RedirectToAction("Index")); } return(View(autor)); } catch (Exception) { return(View(autor)); } }