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

19 lines
506 B
C#

namespace YourNamespace.Entities
{
public class Airport
{
public int Id { get; private set; }
public string Name { get; private set; }
public string Location { get; private set; }
public static Airport CreateEntity(int id, string name, string location)
{
return new Airport
{
Id = id,
Name = name ?? string.Empty,
Location = location ?? string.Empty
};
}
}
}