root / GES_PAC / Model / Personne.cs @ 12ddf7ef
Historique | Voir | Annoter | Télécharger (543 octets)
1 | 65ad7e66 | Lucas Bihannic | |
---|---|---|---|
2 | namespace GES_PAC.Model |
||
3 | { |
||
4 | public class Personne |
||
5 | { |
||
6 | public long Id { get; set; } |
||
7 | public string? Nom { get; set; } |
||
8 | public string? Prenom { get; set; } |
||
9 | public string? Email { get; set; } |
||
10 | |||
11 | |||
12 | public Personne() { } |
||
13 | public Personne(string Nom, string Prenom, string Email) |
||
14 | { |
||
15 | this.Nom = Nom; |
||
16 | this.Prenom = Prenom; |
||
17 | this.Email = Email; |
||
18 | } |
||
19 | public override string ToString() |
||
20 | { |
||
21 | return $"{Nom} {Prenom}"; |
||
22 | } |
||
23 | } |
||
24 | } |