Esempio n. 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            MetodoPagoGS metodoPagoGS = db.MetodoPagoGS.Find(id);

            db.MetodoPagoGS.Remove(metodoPagoGS);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Esempio n. 2
0
 public ActionResult Edit([Bind(Include = "IdMetodoPago,Nombre,IdProveedorPago")] MetodoPagoGS metodoPagoGS)
 {
     if (ModelState.IsValid)
     {
         db.Entry(metodoPagoGS).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.IdProveedorPago = new SelectList(db.ProveedorPagoGS, "IdProveedorPago", "Nombre", metodoPagoGS.IdProveedorPago);
     return(View(metodoPagoGS));
 }
Esempio n. 3
0
        // GET: MetodoPagoGS/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            MetodoPagoGS metodoPagoGS = db.MetodoPagoGS.Find(id);

            if (metodoPagoGS == null)
            {
                return(HttpNotFound());
            }
            return(View(metodoPagoGS));
        }
Esempio n. 4
0
        // GET: MetodoPagoGS/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            MetodoPagoGS metodoPagoGS = db.MetodoPagoGS.Find(id);

            if (metodoPagoGS == null)
            {
                return(HttpNotFound());
            }
            ViewBag.IdProveedorPago = new SelectList(db.ProveedorPagoGS, "IdProveedorPago", "Nombre", metodoPagoGS.IdProveedorPago);
            return(View(metodoPagoGS));
        }