Dariaaaa6 eb6aaa25a6 ...
2024-11-27 00:03:35 +04:00

19 lines
482 B
C#

namespace YourNamespace.Entities
{
public class Plane
{
public int Id { get; private set; }
public string Model { get; private set; }
public int Capacity { get; private set; }
public static Plane CreateEntity(int id, string model, int capacity)
{
return new Plane
{
Id = id,
Model = model ?? string.Empty,
Capacity = capacity
};
}
}
}