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

24 lines
459 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; }
public string Name { get; private set; } = string.Empty;
public static Passanger CreatePassanger(int id, string name)
{
return new Passanger
{
Id = id,
Name = name,
};
}
}