26 lines
671 B
C#
26 lines
671 B
C#
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
|
|
};
|
|
}
|
|
}
|