Убрал лишнее перечисление
This commit is contained in:
@@ -8,15 +8,15 @@ public class Bus
|
||||
|
||||
public string LicensePlate { get; private set; } = string.Empty;
|
||||
|
||||
public BusType Type { get; private set; }
|
||||
public string Model { get; private set; } = string.Empty;
|
||||
|
||||
public static Bus CreateEntity(int id, string licensePlate, BusType type)
|
||||
public static Bus CreateEntity(int id, string licensePlate, string model)
|
||||
{
|
||||
return new Bus
|
||||
{
|
||||
Id = id,
|
||||
LicensePlate = licensePlate,
|
||||
Type = type
|
||||
Model = model
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user