PIBD14-Boyko-M.S.-GSM-Autot.../ProjectGSM/Entities/TypeAppeal.cs
2024-11-05 03:59:13 +04:00

20 lines
535 B
C#

namespace ProjectGSM.Entities;
public class TypeAppeal
{
public int Id { get; private set; }
public string Name { get; private set; } = string.Empty;
public DateTime CreatedAt { get; private set; } = DateTime.UtcNow;
// Конструктор для создания сущности
public static TypeAppeal CreateEntity(int id, string name)
{
return new TypeAppeal
{
Id = id,
Name = name ?? string.Empty,
CreatedAt = DateTime.UtcNow
};
}
}