ISEbd-21_Sharonov_I_A_Proje.../ProjectAirline/Entities/Ticket.cs

24 lines
434 B
C#
Raw Normal View History

2024-10-30 11:13:10 +04:00
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; }
2024-11-13 00:12:08 +04:00
public static Ticket CreateTicket(int id)
{
return new Ticket
{
Id = id,
DateBuy = DateTime.Now,
};
}
2024-10-30 11:13:10 +04:00
}