Exemple #1
0
        public override void Execute(Command command)
        {
            var args    = command.GetParams();
            var newCar  = new Car(args[0], args[1]);
            var slotNum = _parkingLotService.ParkCar(newCar);

            Console.WriteLine($"Car with ID: {args[0]} is parked at {slotNum}");
        }