class OnHoldController {

    @PostMapping
    public String resumeProject(@PathVariable long projectId,
                                @PathVariable long competitionId,
                                UserResource user,
                                RedirectAttributes redirectAttributes) {
        projectStateRestService.resumeProject(projectId).getSuccess();
        redirectAttributes.addFlashAttribute("resumedFromOnHold", true);
        return user.hasRole(Role.IFS_ADMINISTRATOR)
                ? redirectToManagePage(projectId, competitionId)
                : redirectToProjectDetails(projectId, competitionId);
    }

}