public ActionResult DeleteConfirmed(long id) { PLAN_PAGO pLAN_PAGO = db.PLAN_PAGO.Find(id); db.PLAN_PAGO.Remove(pLAN_PAGO); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "ID_PAGO,PLAN,VALOR")] PLAN_PAGO pLAN_PAGO) { if (ModelState.IsValid) { db.Entry(pLAN_PAGO).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(pLAN_PAGO)); }
public ActionResult Create([Bind(Include = "ID_PAGO,PLAN,VALOR")] PLAN_PAGO pLAN_PAGO) { if (ModelState.IsValid) { db.PLAN_PAGO.Add(pLAN_PAGO); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(pLAN_PAGO)); }
// GET: PLAN_PAGO/Delete/5 public ActionResult Delete(long?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } PLAN_PAGO pLAN_PAGO = db.PLAN_PAGO.Find(id); if (pLAN_PAGO == null) { return(HttpNotFound()); } return(View(pLAN_PAGO)); }