public ActionResult Create(Editorial editorial) { try { EditorialBLL.Create(editorial); return(RedirectToAction("Index")); } catch (Exception ex) { return(View("~/Views/Shared/Error.cshtml", new Models.ManejadorError(ex))); } }
public void registrarEditorial() { Editorial e = new Editorial(); e.Estado = 1; e.Nombre = "Editorial1"; e.Pais = PaisBLL.Get(1); EditorialBLL.Create(e); Assert.AreNotEqual(0, e.Id); }