21 lines
641 B
C#
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
|
|
};
|
|
}
|
|
} |