コード例 #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            ProveedorPagoGS proveedorPagoGS = db.ProveedorPagoGS.Find(id);

            db.ProveedorPagoGS.Remove(proveedorPagoGS);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
コード例 #2
0
 public ActionResult Edit([Bind(Include = "IdProveedorPago,Nombre")] ProveedorPagoGS proveedorPagoGS)
 {
     if (ModelState.IsValid)
     {
         db.Entry(proveedorPagoGS).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(proveedorPagoGS));
 }
コード例 #3
0
        public ActionResult Create([Bind(Include = "IdProveedorPago,Nombre")] ProveedorPagoGS proveedorPagoGS)
        {
            if (ModelState.IsValid)
            {
                db.ProveedorPagoGS.Add(proveedorPagoGS);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(proveedorPagoGS));
        }
コード例 #4
0
        // GET: ProveedorPagoGS/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ProveedorPagoGS proveedorPagoGS = db.ProveedorPagoGS.Find(id);

            if (proveedorPagoGS == null)
            {
                return(HttpNotFound());
            }
            return(View(proveedorPagoGS));
        }