mediatek86/Mediatek86/modele/Motif.cs

33 lines
799 B
C#
Raw Normal View History

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