public ActionResult DeleteConfirmed(decimal id) { MUB_PECOR_PLAN mub_pecor_plan = db.MUB_PECOR_PLAN.Find(id); db.MUB_PECOR_PLAN.Remove(mub_pecor_plan); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "ID_PLAN,DESCRIPCION,FECHA_INICIO,FECHA_FINAL,ACTIVO")] MUB_PECOR_PLAN mub_pecor_plan) { if (ModelState.IsValid) { db.Entry(mub_pecor_plan).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(mub_pecor_plan)); }
public ActionResult Create([Bind(Include = "ID_PLAN,DESCRIPCION,FECHA_INICIO,FECHA_FINAL,ACTIVO")] MUB_PECOR_PLAN mub_pecor_plan) { if (ModelState.IsValid) { db.MUB_PECOR_PLAN.Add(mub_pecor_plan); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(mub_pecor_plan)); }
// GET: /pcPlanes/Edit/5 public ActionResult Edit(decimal id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } MUB_PECOR_PLAN mub_pecor_plan = db.MUB_PECOR_PLAN.Find(id); if (mub_pecor_plan == null) { return(HttpNotFound()); } return(View(mub_pecor_plan)); }