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); }
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); }
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); }
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); }
public int AjouterUtilisateur(Utilisateur ut) { int resultat = 0; try { resultat = UtilisateurDal.AjouterUtilisateur(ut); } catch (Exception ex) { throw new Exception(ex.Message); } return(resultat); }
public List <Utilisateur> listerutilisateurinactif() { List <Utilisateur> l = null; try { l = UtilisateurDal.listerutilisateurinactif(); } catch (Exception e) { throw new Exception(e.Message); } return(l); }
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); }
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); }