22 lines
626 B
C#
22 lines
626 B
C#
using System;
|
|
namespace IT_Company.Entities
|
|
{
|
|
public class ServicesContracts
|
|
{
|
|
public int ServiceId { get; set; }
|
|
public int ContractId { get; set; }
|
|
public DateTime Deadline { get; set; }
|
|
public bool IsComplieted { get; set; }
|
|
public static ServicesContracts CreateEntity(int serviceId, int contractId, DateTime deadline)
|
|
{
|
|
return new ServicesContracts
|
|
{
|
|
ServiceId = serviceId,
|
|
ContractId = contractId,
|
|
Deadline = deadline,
|
|
IsComplieted = false
|
|
};
|
|
}
|
|
}
|
|
}
|