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));
        }
예제 #2
0
        public void GuardarTest()
        {
            var registroSpares = new Models.RegistroSpares();

            Assert.IsTrue(SparesBLL.Guardar(registroSpares));
        }