class ApplicationTeamAddOrganisationController {

    @GetMapping
    @PreAuthorize("hasPermission(#applicationId, 'org.innovateuk.ifs.application.resource.ApplicationCompositeId', 'ADD_NEW_ORGANISATION')")
    public String addOrganisationForm(@ModelAttribute(value = "form", binding = false) ApplicationTeamOrganisationForm form,
                           BindingResult bindingResult,
                           Model model,
                           @PathVariable long applicationId,
                           @PathVariable long questionId) {
        ApplicationResource application = applicationRestService.getApplicationById(applicationId).getSuccess();
        model.addAttribute("model", new ApplicationTeamAddOrganisationViewModel(application, questionId));
        return "application/questions/application-team-organisation";
    }

}