ProjectLib/ProjectLibrary/Entites/Ticket_Extension.cs

30 lines
942 B
C#

using System.ComponentModel;
namespace ProjectLibrary.Entites
{
public class TicketExtensions
{
public int Id { get; private set; }
[DisplayName("Идентификационный номер читателя")]
public int ReaderID { get; private set; }
[DisplayName("Последняя дата обновления")]
public DateTime LastUpdateDate { get; private set; }
[DisplayName("Следущая дата обновления")]
public DateTime NextUpdateDate { get; private set; }
public static TicketExtensions CreateEntity(int id, int readerID, DateTime lastUpdateDate, DateTime nextUpdateDate)
{
return new TicketExtensions
{
Id = id,
ReaderID = readerID,
LastUpdateDate = lastUpdateDate,
NextUpdateDate = nextUpdateDate
};
}
}
}