class CompetitionSetupApplicationController {

    @PostMapping(value = "/question/{questionId}/edit", params = {"question.type=ASSESSED_QUESTION", "removeTemplateDocumentFile"})
    public String removeTemplateDocumentFile(@ModelAttribute(COMPETITION_SETUP_FORM_KEY) QuestionForm competitionSetupForm,
                                             BindingResult bindingResult,
                                             ValidationHandler validationHandler,
                                             @PathVariable long competitionId,
                                             @PathVariable long questionId,
                                             UserResource loggedInUser,
                                             Model model,
                                             RedirectAttributes redirectAttributes) {
        Supplier<String> view = () -> getQuestionPage(model, competitionRestService.getCompetitionById(competitionId).getSuccess(),
                loggedInUser, questionId, true, competitionSetupForm);

        return validationHandler.performActionOrBindErrorsToField("templateDocumentFile", view, view,
                () -> questionSetupCompetitionRestService.deleteTemplateDocument(questionId));
    }

}