You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
594 B
25 lines
594 B
public class AppUtilisateur
|
|
{
|
|
public string MotDePasse { get; set; }
|
|
public List<string> Roles { get; set; }
|
|
public string Nom { get; set; }
|
|
|
|
public AppUtilisateur(string nom, string mdp, String premierRole)
|
|
{
|
|
this.MotDePasse = mdp;
|
|
this.Nom = nom;
|
|
|
|
this.Roles = new List<string>();
|
|
this.Roles.Add(premierRole);
|
|
}
|
|
|
|
public void ajouterRole(string nouveauRole)
|
|
{
|
|
this.Roles.Add(nouveauRole);
|
|
}
|
|
|
|
public void supprimerRole(string ancienRole)
|
|
{
|
|
this.Roles.Remove(ancienRole);
|
|
}
|
|
} |