Убрал лишнее перечисление

This commit is contained in:
2024-11-20 12:31:41 +04:00
parent 8f35937785
commit 07835de7ef
4 changed files with 15 additions and 27 deletions

View File

@@ -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
};
}
}