Example #1
0
        public bool ConsultarBeneficio(string nome, string cpf, string nome_mae)
        {
            string    consulta = string.Format($@"SELECT * FROM tbl_cliente WHERE nome_cliente = '{nome}' AND cpf_cliente = '{cpf}' AND nome_mae = '{nome_mae}';");
            DataTable dt       = banco.ExecutarConsulta(consulta);

            if (dt.Rows.Count == 1)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Example #2
0
        public Boolean Autenticar(int?cpf, string nome, string nome_mae)
        {
            string    consulta = string.Format($@"select * from tbl_cliente where cpf_cliente = '{cpf}' and nome_cliente = '{nome}' and nome_mae = '{nome_mae}';");
            DataTable dt       = daoBanco.ExecutarConsulta(consulta);

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