Exemple #1
0
        public bool verificargestor(string nombrePer, string contrasena)
        {
            Gestores ges = new Gestores();

            ges.SetNombPerfilGS(nombrePer);
            ges.SetContrasenaGS(contrasena);
            datosgestor dtg = new datosgestor();

            if (dtg.existegestor(ges) == true)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemple #2
0
        public bool AgregarGestores(Gestores ges)
        {
            int cantFilas = 0;

            datosgestor dato = new datosgestor();

            if (dato.existegestor(ges) == false)
            {
                cantFilas = dato.AgregarGestores(ges);
            }

            if (cantFilas == 1)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }