using System.ComponentModel; namespace LDBproject.Entities; public class CustomerCard { public int CardID { get; private set; } [DisplayName("Reader's full name")] public string FIO { get; private set; } public string FullReaderInfo => $"{CardID} : {FIO}"; [DisplayName("Birthday date")] public DateTime AgeBirthday { get; private set; } public static CustomerCard AddCustomer( int cardIndex, string fullName, DateTime year) { return new CustomerCard { CardID = cardIndex, FIO = fullName, AgeBirthday = year }; } }