Example #1
0
        public static RepresentanteComercial GetRepresentanteComercial(string username)
        {
            Query         supQuery = new Query();
            AttributeTest at       = AttributeTest.Equal("usuario", username);

            supQuery.Where(at);

            return(RepresentanteComercial.FindWithQuery(supQuery).FirstOrDefault());
        }
Example #2
0
        public static MotivoModelCollection GetMotivosByIDTipoInteraccion(int idTipoInteraccion)
        {
            Query supQuery = new Query().Where(AttributeTest.Equal("idTipoInteraccion", idTipoInteraccion.ToString()));

            return(new MotivoModelCollection(Motivo.FindWithQuery(supQuery)));
        }
Example #3
0
        public static NegocioModelCollection GetNegociosBySegmento(int idSegmento)
        {
            Query supQuery = new Query().Where(AttributeTest.Equal("idSegmento", idSegmento.ToString()));

            return(new NegocioModelCollection(Negocio.FindWithQuery(supQuery)));
        }