лаба 2 готова

This commit is contained in:
2024-11-28 19:38:11 +04:00
parent 07835de7ef
commit 7110647bdd
19 changed files with 420 additions and 123 deletions

View File

@@ -6,16 +6,16 @@ public class Bus
{
public int Id { get; private set; }
public string LicensePlate { get; private set; } = string.Empty;
public string Licence_plate { get; private set; } = string.Empty;
public string Model { get; private set; } = string.Empty;
public static Bus CreateEntity(int id, string licensePlate, string model)
public static Bus CreateEntity(int id, string licencePlate, string model)
{
return new Bus
{
Id = id,
LicensePlate = licensePlate,
Licence_plate = licencePlate,
Model = model
};
}