private Driver GetDriver(DriverRegistrationModel model)
        {
            Car car = new Car {
                CarBrand = model.CarBrand,
                CarModel = model.CarModel,
                VehicleType = model.VehicleType,
                CarNumber = model.CarNumber,
                CarClass = model.CarClass
                };
            Driver driver = new Driver {
                Name = model.Name,
                Surname = model.Surname,
                MiddleName = model.Middlename,
                Phone = model.Phone,
                Login = model.Login,
                Password = model.Password,
                LicenseNum = model.LicenseNumber,
                LicenseValidDate = model.LicenseValidDate,
                Nationality = model.Nationality,
                Car = car
            };

            return driver;
        }
 public Driver()
 {
     Car = new Car();
 }