19 lines
506 B
C#
Raw Normal View History

2024-11-27 00:03:35 +04:00
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
};
}
}
}