Ejemplo n.º 1
0
 public List <cmVentaDet> fnlsRecuperaSalidaDes(cmVentaDet oDestino)
 {
     using (var contexto = new TravelOKEntities())
     {
         List <cmVentaDet> LsSalVenta = new List <cmVentaDet>();
         LsSalVenta = (from salida in contexto.spsObtLugarSalViajesDest(oDestino.idDestino)
                       select new cmVentaDet
         {
             idSalida = salida.Id_salida,
             sSalida = salida.Ciudad
         }).ToList();
         return(LsSalVenta);
     }
 }
Ejemplo n.º 2
0
        public List <cmComunidad> lsObtieneComunidad()
        {
            List <cmComunidad> lsComunidad = new List <cmComunidad>();

            using (var contexto = new TravelOKEntities())//Local
            //using (var contexto = new TravelOKEntitiesQA())//QA
            {
                lsComunidad = (from tblComunidad in contexto.spObtieneComunidad()
                               select new cmComunidad
                {
                    IdComunidad = tblComunidad.IdExp,
                    sNombre = tblComunidad.Nombre,
                    sTestimonio = tblComunidad.Testimonio,
                    iCalificacion = tblComunidad.Calificacion,
                    IdViaje = tblComunidad.IdDestino,
                    sDestino = tblComunidad.Destino,
                    ImgDestino = tblComunidad.ImgDestino,
                    dtFechaRegistro = tblComunidad.ActivityDate
                }
                               ).ToList();
            }
            return(lsComunidad);
        }