public ActionResult DeleteConfirmed(string id) { MUH_PECOR_COBERTURA muh_pecor_cobertura = db.MUH_PECOR_COBERTURA.Find(id); db.MUH_PECOR_COBERTURA.Remove(muh_pecor_cobertura); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "DPTO_CCDGO,MPIO_CCDGO,VIGENCIA_ANT,VSS_BENEFIADAS,ID_PLAN,ICEE,V_TOTAL,VSS_TOTAL,NBI,ICEE_VIVTOT,ICEE_VSS_TOT,CU_DIESEL,DPTO_NOMBRE,MPIO_NOMBRE")] MUH_PECOR_COBERTURA muh_pecor_cobertura) { if (ModelState.IsValid) { db.Entry(muh_pecor_cobertura).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.ID_PLAN = new SelectList(db.MUB_PECOR_PLAN, "ID_PLAN", "DESCRIPCION", muh_pecor_cobertura.ID_PLAN); return(View(muh_pecor_cobertura)); }
// GET: /PriorizacionUno/Details/5 public ActionResult Details(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } MUH_PECOR_COBERTURA muh_pecor_cobertura = db.MUH_PECOR_COBERTURA.Find(id); if (muh_pecor_cobertura == null) { return(HttpNotFound()); } return(View(muh_pecor_cobertura)); }
// GET: /PriorizacionUno/Edit/5 public ActionResult Edit(string id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } MUH_PECOR_COBERTURA muh_pecor_cobertura = db.MUH_PECOR_COBERTURA.Find(id); if (muh_pecor_cobertura == null) { return(HttpNotFound()); } ViewBag.ID_PLAN = new SelectList(db.MUB_PECOR_PLAN, "ID_PLAN", "DESCRIPCION", muh_pecor_cobertura.ID_PLAN); return(View(muh_pecor_cobertura)); }