public ActionResult Create(RegistroSpares registroSpares) { if (ModelState.IsValid) { SparesBLL.Guardar(registroSpares); return(RedirectToAction("Index")); } ViewBag.AlmacenId = new SelectList(db.almacen, "AlmacenId", "Nombre", registroSpares.AlmacenId); return(View(registroSpares)); }
public void GuardarTest() { var registroSpares = new Models.RegistroSpares(); Assert.IsTrue(SparesBLL.Guardar(registroSpares)); }