24 lines
459 B
C#
24 lines
459 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace ProjectAirline.Entities;
|
|||
|
|
|||
|
public class Passanger
|
|||
|
{
|
|||
|
public int Id { get; private set; }
|
|||
|
|
|||
|
public string Name { get; private set; } = string.Empty;
|
|||
|
|
|||
|
public static Passanger CreatePassanger(int id, string name)
|
|||
|
{
|
|||
|
return new Passanger
|
|||
|
{
|
|||
|
Id = id,
|
|||
|
Name = name,
|
|||
|
};
|
|||
|
}
|
|||
|
}
|