public ActionResult DeleteConfirmed(int id)
        {
            SUSPENCION sUSPENCION = db.SUSPENCION.Find(id);

            db.SUSPENCION.Remove(sUSPENCION);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "PRODUCTO,NOMBRE,SKU,PRECIO,MARCA,MODELO,DESCRIPCION,EXISTENCIA,PROVEEDOR,CODIGO")] SUSPENCION sUSPENCION)
 {
     if (ModelState.IsValid)
     {
         db.Entry(sUSPENCION).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.MARCA     = new SelectList(db.Marca, "id_marca", "MARCA1", sUSPENCION.MARCA);
     ViewBag.MODELO    = new SelectList(db.Modelo, "id_modelo", "MODELO1", sUSPENCION.MODELO);
     ViewBag.PROVEEDOR = new SelectList(db.Proveedor, "id_proveedor", "NOMBRE", sUSPENCION.PROVEEDOR);
     return(View(sUSPENCION));
 }
        // GET: SUSPENCIONs/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            SUSPENCION sUSPENCION = db.SUSPENCION.Find(id);

            if (sUSPENCION == null)
            {
                return(HttpNotFound());
            }
            return(View(sUSPENCION));
        }
        // GET: SUSPENCIONs/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            SUSPENCION sUSPENCION = db.SUSPENCION.Find(id);

            if (sUSPENCION == null)
            {
                return(HttpNotFound());
            }
            ViewBag.MARCA     = new SelectList(db.Marca, "id_marca", "MARCA1", sUSPENCION.MARCA);
            ViewBag.MODELO    = new SelectList(db.Modelo, "id_modelo", "MODELO1", sUSPENCION.MODELO);
            ViewBag.PROVEEDOR = new SelectList(db.Proveedor, "id_proveedor", "NOMBRE", sUSPENCION.PROVEEDOR);
            return(View(sUSPENCION));
        }