class ApplicationTeamController {

    @PostMapping(params = "invite-to-organisation")
    public String inviteToOrganisation(@Valid @ModelAttribute("form") ApplicationTeamForm form,
                                       BindingResult bindingResult,
                                       ValidationHandler validationHandler,
                                       @PathVariable long applicationId,
                                       @PathVariable long questionId,
                                       @RequestParam("invite-to-organisation") final long organisationId,
                                       Model model,
                                       UserResource user) {
        return inviteToOrganisation(form, validationHandler, applicationId, questionId, organisationId, model, user,
                invite -> inviteRestService.saveInvites(singletonList(invite))
        );
    }

}