недоделано

This commit is contained in:
2024-11-13 12:10:37 +04:00
parent 3c107950cd
commit 0e78ed6914
49 changed files with 3201 additions and 67 deletions

View File

@@ -0,0 +1,22 @@
using ProjectPassengerTransportation.Entities.Enums;
namespace ProjectPassengerTransportation.Entities;
public class Bus
{
public int Id { get; private set; }
public string LicensePlate { get; private set; } = string.Empty;
public BusType Type { get; private set; }
public static Bus CreateEntity(int id, string licensePlate, BusType type)
{
return new Bus
{
Id = id,
LicensePlate = licensePlate,
Type = type
};
}
}