/// <inheritdoc /> public void RemoveScooter(string id) { var scooter = _scooterRepository.GetById(id); if (scooter == null) { throw new ScooterNotFoundException(id); } if (scooter.IsRented) { throw new InvalidScooterOperationException(id); } _scooterRepository.Remove(id); }