ISEbd-21_Sharonov_I_A_Proje.../ProjectAirline/Entities/Passanger.cs

27 lines
580 B
C#
Raw Normal View History

2024-10-30 11:13:10 +04:00
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; }
2024-11-27 00:48:24 +04:00
public string FirstName { get; private set; } = string.Empty;
2024-10-30 11:13:10 +04:00
2024-11-27 00:48:24 +04:00
public string LastName { get; private set; } = string.Empty;
public static Passanger CreatePassanger(int id, string fname, string lname)
2024-10-30 11:13:10 +04:00
{
return new Passanger
{
Id = id,
2024-11-27 00:48:24 +04:00
FirstName = fname,
LastName = lname
2024-10-30 11:13:10 +04:00
};
}
}