public ActionResult DeleteConfirmed(int id)
        {
            TOUR_Operadores tOUR_Operadores = db.TOUR_Operadores.Find(id);

            db.TOUR_Operadores.Remove(tOUR_Operadores);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "CodCom,NomCom,TelCom,EmaCom,Contacto1,Telcon1,EmaCon1,Contacto2,Telcon2,Emacon2")] TOUR_Operadores tOUR_Operadores)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tOUR_Operadores).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.CodCom = new SelectList(db.TOUR_Catalogo_Tour, "CodTour", "NomTour", tOUR_Operadores.CodCom);
     return(View(tOUR_Operadores));
 }
        // GET: TOUR_Operadores/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            TOUR_Operadores tOUR_Operadores = db.TOUR_Operadores.Find(id);

            if (tOUR_Operadores == null)
            {
                return(HttpNotFound());
            }
            return(View(tOUR_Operadores));
        }
        // GET: TOUR_Operadores/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            TOUR_Operadores tOUR_Operadores = db.TOUR_Operadores.Find(id);

            if (tOUR_Operadores == null)
            {
                return(HttpNotFound());
            }
            ViewBag.CodCom = new SelectList(db.TOUR_Catalogo_Tour, "CodTour", "NomTour", tOUR_Operadores.CodCom);
            return(View(tOUR_Operadores));
        }