недоделано
This commit is contained in:
@@ -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
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user