public ActionResult DeleteConfirmed(int id) { DETALLEPRESTAMO dETALLEPRESTAMO = db.DETALLEPRESTAMOes.Find(id); db.DETALLEPRESTAMOes.Remove(dETALLEPRESTAMO); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "IDDETALLEPRESTAMO,IDVEHICULO,DESCRIPCION,COSTODIA,MONTODEPOSITO,USUARIOCREACION,USUARIOMODIFICA,USUARIOFINALIZA")] DETALLEPRESTAMO dETALLEPRESTAMO) { if (ModelState.IsValid) { db.Entry(dETALLEPRESTAMO).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.IDVEHICULO = new SelectList(db.VEHICULOes, "IDVEHICULO", "PLACA", dETALLEPRESTAMO.IDVEHICULO); return(View(dETALLEPRESTAMO)); }
// GET: DETALLEPRESTAMOes/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } DETALLEPRESTAMO dETALLEPRESTAMO = db.DETALLEPRESTAMOes.Find(id); if (dETALLEPRESTAMO == null) { return(HttpNotFound()); } return(View(dETALLEPRESTAMO)); }
// GET: DETALLEPRESTAMOes/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } DETALLEPRESTAMO dETALLEPRESTAMO = db.DETALLEPRESTAMOes.Find(id); if (dETALLEPRESTAMO == null) { return(HttpNotFound()); } ViewBag.IDVEHICULO = new SelectList(db.VEHICULOes, "IDVEHICULO", "PLACA", dETALLEPRESTAMO.IDVEHICULO); return(View(dETALLEPRESTAMO)); }