public static RepresentanteComercial GetRepresentanteComercial(string username) { Query supQuery = new Query(); AttributeTest at = AttributeTest.Equal("usuario", username); supQuery.Where(at); return(RepresentanteComercial.FindWithQuery(supQuery).FirstOrDefault()); }
public static MotivoModelCollection GetMotivosByIDTipoInteraccion(int idTipoInteraccion) { Query supQuery = new Query().Where(AttributeTest.Equal("idTipoInteraccion", idTipoInteraccion.ToString())); return(new MotivoModelCollection(Motivo.FindWithQuery(supQuery))); }
public static NegocioModelCollection GetNegociosBySegmento(int idSegmento) { Query supQuery = new Query().Where(AttributeTest.Equal("idSegmento", idSegmento.ToString())); return(new NegocioModelCollection(Negocio.FindWithQuery(supQuery))); }