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

This commit is contained in:
2024-11-20 12:24:10 +04:00
parent 042bbafe37
commit d2fb047b36
5 changed files with 16 additions and 28 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
};
}
}