namespace projet.modele { /// /// Représente un motif d'absence /// public class Motif { /// Identifiant du motif public int IdMotif { get; set; } /// Libellé du motif public string Libelle { get; set; } /// /// Constructeur de la classe Motif /// public Motif(int idMotif, string libelle) { IdMotif = idMotif; Libelle = libelle; } /// /// Méthode pour obtenir une représentation en chaîne du motif. /// /// public override string ToString() { return this.Libelle; } } }