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 PreparatoryWork { public int Id { get; private set; } public int FlightId { get; private set; } public int PlaneId { get; private set; } public DateTime StartDate { get; private set; } public DateTime EndDate { get; private set; } public PreparatoryWorkStatus Status { get; private set; } public static PreparatoryWork CreatePrerapatoryWork(int id, int FlightId, int PlaneId, DateTime StartDate, DateTime EndDate, PreparatoryWorkStatus Status) { return new PreparatoryWork { Id = id, FlightId = FlightId, PlaneId = PlaneId, StartDate = StartDate, EndDate = EndDate, Status = Status }; } }