Example #1
0
        public Boolean consultarBeneficio(TblClienteB38DTO user)
        {
            conexao = new DALMVC();

            string sql = $@"SELECT * FROM tbl_clienteB38 
              WHERE `nome_cliente`='{user._nome_cliente}'
              AND `cpf_cliente`='{user._cpf_cliente}'
              AND `nome_mae`='{user._nome_mae}'";

            DataTable resultado = conexao.executarConsulta(sql);

            return(resultado.Rows.Count == 1);
        }
Example #2
0
        public Boolean Autenticar(string nome, string cpf, string nomeDaMae)
        {
            string    consulta = string.Format($@"select * from tbl_clienteb09 where nome_cliente = '{nome}' and cpf_cliente = '{cpf}' and nome_mae = '{nomeDaMae}'");
            DataTable dt       = daoBanco.executarConsulta(consulta);

            if (dt.Rows.Count == 1)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Example #3
0
        public Boolean consultarBeneficio(string cpf, string nome_completo, string nome_mae)
        {
            string    consulta = string.Format($@"select * from tbl_clienteD36 where cpf_cliente = '{cpf}' and nome_cliente = '{nome_completo}' and nome_mae = '{nome_mae}'");
            DataTable dt       = daoBanco.executarConsulta(consulta);

            if (dt.Rows.Count == 1)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }