Exemplo n.º 1
0
        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"));
        }
Exemplo n.º 2
0
 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));
 }
Exemplo n.º 3
0
        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));
        }
Exemplo n.º 4
0
        // 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));
        }