Exemplo n.º 1
0
 public ActionResult DeleteDest(JGA_PGS_DEST jga_pgs_dest)
 {
     jga_pgs_dest.DEST_ESTADO = 0;
     db.JGA_PGS_DEST.Attach(jga_pgs_dest);
     db.Entry(jga_pgs_dest).Property(x => x.DEST_ESTADO).IsModified = true;
     db.SaveChanges();
     return RedirectToAction("Destinos", new { id = jga_pgs_dest.DEST_IDNAV });
 }
Exemplo n.º 2
0
 public ActionResult GuardarDest(JGA_PGS_DEST jga_pgs_dest)
 {
     jga_pgs_dest.DEST_ESTADO = 1;
     db.JGA_PGS_DEST.Add(jga_pgs_dest);
     db.SaveChanges();
     return RedirectToAction("Destinos", new { id = jga_pgs_dest.DEST_IDNAV });
 }
Exemplo n.º 3
0
 public ActionResult EditDest(JGA_PGS_DEST jga_pgs_dest)
 {
     jga_pgs_dest.DEST_ESTADO = 1;
     db.Entry(jga_pgs_dest).State = EntityState.Modified;
     db.SaveChanges();
     return RedirectToAction("Destinos", new { id = jga_pgs_dest.DEST_IDNAV });
 }