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