public ActionResult DeleteConfirmed(int id) { PRO96_Garantia pRO96_Garantia = db.PRO96_Garantia.Find(id); db.PRO96_Garantia.Remove(pRO96_Garantia); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "idCode,Cod_PRO,Informacion")] PRO96_Garantia pRO96_Garantia) { if (ModelState.IsValid) { db.Entry(pRO96_Garantia).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.Cod_PRO = new SelectList(db.PRO1_Productos, "Cod_pro", "COD_PRODUCTO", pRO96_Garantia.Cod_PRO); return(View(pRO96_Garantia)); }
// GET: PRO96_Garantia/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } PRO96_Garantia pRO96_Garantia = db.PRO96_Garantia.Find(id); if (pRO96_Garantia == null) { return(HttpNotFound()); } return(View(pRO96_Garantia)); }
// GET: PRO96_Garantia/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } PRO96_Garantia pRO96_Garantia = db.PRO96_Garantia.Find(id); if (pRO96_Garantia == null) { return(HttpNotFound()); } ViewBag.Cod_PRO = new SelectList(db.PRO1_Productos, "Cod_pro", "COD_PRODUCTO", pRO96_Garantia.Cod_PRO); return(View(pRO96_Garantia)); }