2024-11-27 01:25:44 +04:00
|
|
|
|
using ProjectAirline.Entities.Enums;
|
|
|
|
|
using System;
|
2024-10-30 11:13:10 +04:00
|
|
|
|
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; }
|
|
|
|
|
|
2024-11-27 01:25:44 +04:00
|
|
|
|
public TicketStatus Status { get; private set; }
|
|
|
|
|
|
|
|
|
|
public static Ticket CreateTicket(int id, TicketStatus status)
|
2024-11-13 00:12:08 +04:00
|
|
|
|
{
|
|
|
|
|
return new Ticket
|
|
|
|
|
{
|
|
|
|
|
Id = id,
|
2024-11-27 01:25:44 +04:00
|
|
|
|
Status = status,
|
2024-11-13 00:12:08 +04:00
|
|
|
|
DateBuy = DateTime.Now,
|
|
|
|
|
};
|
|
|
|
|
}
|
2024-10-30 11:13:10 +04:00
|
|
|
|
}
|