public ActionResult DeleteConfirmed(int id)
        {
            OPC_VUELOS oPC_VUELOS = db.OPC_VUELOS.Find(id);

            db.OPC_VUELOS.Remove(oPC_VUELOS);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "COD_OPC_VUELO,OPCION_VUELO")] OPC_VUELOS oPC_VUELOS)
 {
     if (ModelState.IsValid)
     {
         db.Entry(oPC_VUELOS).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(oPC_VUELOS));
 }
        public ActionResult Create([Bind(Include = "COD_OPC_VUELO,OPCION_VUELO")] OPC_VUELOS oPC_VUELOS)
        {
            if (ModelState.IsValid)
            {
                db.OPC_VUELOS.Add(oPC_VUELOS);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(oPC_VUELOS));
        }
        // GET: OPC_VUELOS/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            OPC_VUELOS oPC_VUELOS = db.OPC_VUELOS.Find(id);

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