public ActionResult Insertar()
        {
            ReservaIyV riv1 = TempData["ReservaIyV"] as ReservaIyV;
            //ReservaIyV riv2 = TempData["ReservaIyV"] as ReservaIyV;
            SeleccionViaje sv1  = TempData["SeleccionViaje"] as SeleccionViaje;
            Informacion    inf1 = TempData["Informacion"] as Informacion;
            ReservaIyV     riv  = new ReservaIyV();

            using (CoviskyEntities cov = new CoviskyEntities())
            {
                //index
                Random rdm   = new Random();
                int    nobol = rdm.Next(100, 100001);
                riv.noboleto      = nobol;
                riv.origeniv      = riv1.origeniv;
                riv.destinoiv     = riv1.destinoiv;
                riv.saleiv        = riv1.saleiv;
                riv.regresaiv     = riv1.regresaiv;
                riv.cant_adultoiv = riv1.cant_adultoiv;
                riv.claseiv       = riv1.claseiv;
                riv.aerolinea     = riv1.aerolinea;
                //selecttravel
                riv.costo1 = sv1.costo1;
                //info
                riv.nombre       = inf1.nombre;
                riv.apellido     = inf1.apellido;
                riv.fechanac     = inf1.fechanac;
                riv.correo       = inf1.correo;
                riv.telefonoinfo = inf1.telefonoinfo;
                //pago
                riv.notarjeta   = Convert.ToInt32(Request.Form["inputtarjeta"].ToString());
                riv.fechaven    = Request.Form["inputfecha"].ToString();
                riv.cvv         = Convert.ToInt32(Request.Form["inputcodigo_seg"].ToString());
                riv.pais        = Request.Form["inputState"].ToString();
                riv.nombretar   = Request.Form["inputnombre"].ToString();
                riv.pasaporte   = Request.Form["inputidentificacion"].ToString();
                riv.correotar   = Request.Form["inputcorreo"].ToString();
                riv.telefonotar = Convert.ToInt32(Request.Form["inputTelefono"].ToString());
                riv.direccion   = Request.Form["inputdirec"].ToString();
                riv.estado      = Request.Form["inputestado"].ToString();
                riv.ciudad      = Request.Form["inputCiudad"].ToString();
                riv.codigop     = Convert.ToInt32(Request.Form["inputCodigo_postal"].ToString());

                var bol = new Boleto();
                bol.bol_No_Boleto       = riv.noboleto;
                bol.bol_aero_ID_Origen  = riv.origeniv;
                bol.bol_aero_ID_Destino = riv.destinoiv
            }
            return(View(riv));
        }
 public Obtener()
 {
     _context = new CoviskyEntities();
 }