ISEbd-21_Sharonov_I_A_Proje.../ProjectAirline/Entities/Ticket.cs
2024-11-27 01:25:44 +04:00

28 lines
575 B
C#

using ProjectAirline.Entities.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProjectAirline.Entities;
public class Ticket
{
public int Id { get; private set; }
public DateTime DateBuy { get; private set; }
public TicketStatus Status { get; private set; }
public static Ticket CreateTicket(int id, TicketStatus status)
{
return new Ticket
{
Id = id,
Status = status,
DateBuy = DateTime.Now,
};
}
}