ISEbd-21_Sharonov_I_A_Proje.../ProjectAirline/Entities/Passanger.cs
2024-11-27 00:48:24 +04:00

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
};
}
}