Example #1
0
        public bool UpdateOccupied(ParkingSpace parkingSpace)
        {
            ParkingSpaceDTO parkingSpaceDTO = new ParkingSpaceDTO(parkingSpace.ParkingSpaceID, parkingSpace.BusID, parkingSpace.Occupied);

            return(handler.UpdateOccupied(parkingSpaceDTO));
        }
Example #2
0
        public bool Update(ParkingSpace parkingSpace)
        {
            ParkingSpaceDTO parkingSpaceDTO = new ParkingSpaceDTO(parkingSpace.ParkingSpaceID, parkingSpace.BusID, parkingSpace.Number, (int)parkingSpace.Type, parkingSpace.Occupied);

            return(handler.Update(parkingSpaceDTO));
        }