using System; using System.Runtime.Serialization; namespace ParionsCuite.Modeles { [DataContract] public class Inviter { /// /// Gets or sets the last name of the guest. /// [DataMember] public string Nom { get; set; } /// /// Gets or sets the first name of the guest. /// [DataMember] public string Prenom { get; set; } /// /// Initializes a new instance of the class with the specified last name and first name. /// /// The last name of the guest. /// The first name of the guest. public Inviter(string nom, string prenom) { Nom = nom; Prenom = prenom; } /// /// Initializes a new instance of the class with the specified first name. /// /// The first name of the guest. public Inviter(string prenom) { Prenom = prenom; } /// /// Initializes a new instance of the class. /// public Inviter() { } /// /// Returns a string representation of the guest. /// /// A string representation of the guest. public override string ToString() { return $"nom : {Nom}, prenom : {Prenom} \n"; } } }