28 lines
575 B
C#
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,
|
|
};
|
|
}
|
|
}
|