Ejemplo n.º 1
0
        public static ClienteNivel ObtenerClienteNivel(string identificacion)
        {
            List <ClienteNivel> lista = ClienteNivelLN.ObtenerTodos();
            ClienteNivel        cn    = lista.Where(x => x.cliente.identificacion == identificacion).FirstOrDefault();

            return(cn);
        }
Ejemplo n.º 2
0
        public static List <ClienteNivel> NivelPorCliente(int idNIvel)
        {
            List <ClienteNivel> lista = ClienteNivelLN.ObtenerTodos();
            List <ClienteNivel> cN    = lista.Where(x => x.nivel.id == idNIvel).ToList();

            return(cN);
        }
Ejemplo n.º 3
0
        public static List <ClienteNivel> ClientePorNivel(String identificacion)
        {
            List <ClienteNivel> lista = ClienteNivelLN.ObtenerTodos();
            List <ClienteNivel> cN    = lista.Where(x => x.cliente.identificacion == identificacion).ToList();

            return(cN);
        }
Ejemplo n.º 4
0
        public static ClienteNivel Obtener(string identificacion)
        {
            List <ClienteNivel> lista = new List <ClienteNivel>();

            lista = ClienteNivelLN.ObtenerTodos();
            ClienteNivel n = new ClienteNivel();

            n = (lista.Find(elemento => elemento.cliente.identificacion == identificacion));
            return(n);
        }