Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static List<Utilisateur> AllMembers()
- {
- return Utilisateurs;
- }
- public static int GetID(string name)
- {
- foreach (Utilisateur u in Utilisateurs)
- {
- if (u.Pseudo == name)
- return u.ID;
- }
- return 0;
- }
- public static bool DeleteUtilisateur(int id)
- {
- foreach (Utilisateur user in Utilisateurs)
- {
- if (user.ID == id)
- {
- Utilisateurs.Remove(user);
- return true;
- }
- }
- return false;
- }
- public static void AddCommentaire(int user, int isbn, string com)
- {
- foreach (Livre l in Livres)
- {
- if (l.ISBN == isbn)
- {
- l.AddCommentaire(user, com);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement