public ActionResult DeleteConfirmed(int id) { MetodoPagoGS metodoPagoGS = db.MetodoPagoGS.Find(id); db.MetodoPagoGS.Remove(metodoPagoGS); db.SaveChanges(); return(RedirectToAction("Index")); }
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)); }
// 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)); }
// 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)); }