コード例 #1
0
ファイル: Usuarios.cs プロジェクト: joelmyjb/Solutions
        public Boolean Autenticar(string Nombre, string Clave)
        {
            Conexion conexiondb = new Conexion();
            Boolean  retorno    = false;
            object   IdUsuario  = conexiondb.ObtenerValorDb("select IdUsuario from Usuarios Where Nombre = '" + Nombre + "' And Clave = '" + Clave + "'");

            if (IdUsuario != null)
            {
                retorno = this.Buscar();
            }

            return(retorno);
        }