27 lines
580 B
C#
27 lines
580 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 FirstName { get; private set; } = string.Empty;
|
|
|
|
public string LastName { get; private set; } = string.Empty;
|
|
|
|
public static Passanger CreatePassanger(int id, string fname, string lname)
|
|
{
|
|
return new Passanger
|
|
{
|
|
Id = id,
|
|
FirstName = fname,
|
|
LastName = lname
|
|
};
|
|
}
|
|
}
|