class QuestionSetupAddAndRemoveServiceImpl implements QuestionSetupAddAndRemoveService {

    @Override
    public ServiceResult<Void> deleteQuestionInCompetition(long questionId) {
        return find(questionRepository.findFirstById(questionId),
                notFoundError(Question.class, questionId))
                .andOnSuccess(this::deleteQuestion);
    }

}