public ActionResult DeleteConfirmed(string id) { pRO_hsEG pRO_hsEG = db.pRO_hsEG.Find(id); db.pRO_hsEG.Remove(pRO_hsEG); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Codigo,C1nOMBRE,C1sINONIMOS,C1fXqUIMICA,C1nOUN,C1iDpROVEE,C3rIESTOsALUD,C3iNHALACION,C3iNGESTION,C3cONTACpIEL,C3cONTACoJOS,C4iNHALACION,C4iNGESTION,C4cONTACpIEL,C4cONTACoJOS,C5piNFLAMACION,C5tEMaUTOiGNICION,C5lIMITiNFLAMA,C5pELIiNCENeXPLO,C5mEDIeXTINCION,C5pROcOMBUSTION,C5pRECAUCIONES,C5iNTRUCcONTRAfIRE,C6mEDIvERDITO,C7mANEJO,C7aLMACENAMIENTO,C8cONTROLiNG,C9aPARIENCIA,C9vALOR,C9eSTADOfISICO,C9gRAVEDAD,C9pUNTOeBULLI,C9pUNTOfUSION,C9dENSIDAD,C9vISCOSIDAD,C9pH,C9sOLUBILIDAD,C10eSTABILIquIMICA,C10aeVITAR,C10iNCOMPATIBILIDAD,C10pRPpELIxdESCOM,C10pOLIMERIZACION,C11iNFOtOXICOLOGICA,C12iNFOeCOLOGICA,C13dISPOSICION,C14iNFOtRANSPORTE,C15iNFOrEGLAMENTA,C16nFPA,C16pICT1,C16pICT2")] pRO_hsEG pRO_hsEG) { if (ModelState.IsValid) { db.Entry(pRO_hsEG).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.Codigo = new SelectList(db.Productos, "Código", "Descripción", pRO_hsEG.Codigo); return(View(pRO_hsEG)); }
// GET: pRO_hsEG/Delete/5 public ActionResult Delete(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } pRO_hsEG pRO_hsEG = db.pRO_hsEG.Find(id); if (pRO_hsEG == null) { return(HttpNotFound()); } return(View(pRO_hsEG)); }
// GET: pRO_hsEG/Edit/5 public ActionResult Edit(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } pRO_hsEG pRO_hsEG = db.pRO_hsEG.Find(id); if (pRO_hsEG == null) { return(HttpNotFound()); } ViewBag.Codigo = new SelectList(db.Productos, "Código", "Descripción", pRO_hsEG.Codigo); return(View(pRO_hsEG)); }