PIBD14-Boyko-M.S.-GSM-Autot.../ProjectGSM/Entities/CaseAdvocate.cs
2024-11-09 03:06:08 +04:00

21 lines
641 B
C#

namespace ProjectGSM.Entities;
public class CaseAdvocate
{
public int CaseId { get; private set; }
public int AdvocateId { get; private set; }
public string Post { get; private set; } = string.Empty;
public DateTime CreatedAt { get; private set; } = DateTime.UtcNow;
// Конструктор для создания сущности
public static CaseAdvocate CreateEntity(int caseId, int advocateId, string post)
{
return new CaseAdvocate
{
CaseId = caseId,
AdvocateId = advocateId,
Post = post,
CreatedAt = DateTime.UtcNow
};
}
}