19 lines
506 B
C#
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
|
|
};
|
|
}
|
|
}
|
|
} |