22 lines
702 B
C#
22 lines
702 B
C#
namespace ProjectLibrary.Entities
|
|
{
|
|
public class Reader
|
|
{
|
|
public int Id { get; private set; }
|
|
public string Name { get; private set; } = string.Empty;
|
|
public int ReaderTicket { get; private set; }
|
|
public DateTime RegistrationDateRT { get; private set; } // Изменение на DateTime
|
|
|
|
public static Reader CreateEntity(int id, string name, int readerTicket, DateTime registrationDateRT)
|
|
{
|
|
return new Reader
|
|
{
|
|
Id = id,
|
|
Name = name ?? string.Empty,
|
|
ReaderTicket = readerTicket,
|
|
RegistrationDateRT = registrationDateRT
|
|
};
|
|
}
|
|
}
|
|
}
|