コード例 #1
0
        public Boolean BlocUtilisateur(string code, string etatcompte)
        {
            Boolean reponse = false;

            try
            {
                reponse = UtilisateurDal.BlocUtilisateur(code, etatcompte);
            }
            catch (Exception ex) {
                throw new Exception(ex.Message);
            }
            return(reponse);
        }
コード例 #2
0
        public string RetracerOperation(string nomuser, string operation, string adressemac)
        {
            string resultat = null;

            try
            {
                resultat = UtilisateurDal.retracerOperation(nomuser, operation, adressemac);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
            return(resultat);
        }
コード例 #3
0
        public int ModifierSonCompte(string code, string pseudo, string motdepasse)
        {
            int resultat = 0;

            try
            {
                resultat = UtilisateurDal.ModifierSonCompte(code, pseudo, motdepasse);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
            return(resultat);
        }
コード例 #4
0
        public int ModifierUtilisateur(string code, string nom, string prenom, string pseudo, string motdepasse, string droit, string etat)
        {
            int resultat = 0;

            try
            {
                resultat = UtilisateurDal.ModifierUtilisateur(code, nom, prenom, pseudo, motdepasse, droit, etat);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
            return(resultat);
        }
コード例 #5
0
        public int AjouterUtilisateur(Utilisateur ut)
        {
            int resultat = 0;

            try
            {
                resultat = UtilisateurDal.AjouterUtilisateur(ut);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
            return(resultat);
        }
コード例 #6
0
        public List <Utilisateur> listerutilisateurinactif()
        {
            List <Utilisateur> l = null;

            try
            {
                l = UtilisateurDal.listerutilisateurinactif();
            }
            catch (Exception e)
            {
                throw new Exception(e.Message);
            }


            return(l);
        }
コード例 #7
0
        public bool connexion(string id, string mod)
        {
            bool trouver = false;

            Ef = UtilisateurDal.connexion(id, mod);

            try
            {
                if (Ef.Get_code() != null)
                {
                    trouver = true;
                }
                else
                {
                    trouver = false;
                }
            }
            catch
            {
                trouver = false;
            }
            return(trouver);
        }
コード例 #8
0
        public bool RechercherPseudoModpas(string id, string mod)
        {
            bool trouver = false;

            Ef = UtilisateurDal.RechercherPseudoModpas(id, mod);

            try
            {
                if (Ef.Get_code() != null)
                {
                    trouver = true;
                }
                else
                {
                    trouver = false;
                }
            }
            catch
            {
                trouver = false;
            }
            return(trouver);
        }