26 lines
671 B
C#
Raw Normal View History

2024-12-11 09:33:12 +04:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ProjectAirline.Entities;
public class EmployeeFlight
{
public int Id { get; private set; }
public int EmployeeId { get; private set; }
public int FlightId { get; private set; }
public int HoursWorked { get; private set; }
public static EmployeeFlight CreateOperation(int id, int employeeId, int flightId, int hoursWorked)
{
return new EmployeeFlight
{
Id = id,
EmployeeId = employeeId,
FlightId = flightId,
HoursWorked = hoursWorked
};
}
}