class CompetitionSetupApplicationController {

    @PostMapping(value = "/landing-page", params = "deleteQuestion")
    public String deleteQuestion(@ModelAttribute("deleteQuestion") DeleteQuestionForm deleteQuestionForm,
                                 @PathVariable long competitionId) {
        questionSetupCompetitionRestService.deleteById(deleteQuestionForm.getDeleteQuestion());

        Supplier<String> view = () -> String.format(APPLICATION_LANDING_REDIRECT, competitionId);

        return view.get();
    }

}