class SpendProfileController {

    @PostMapping("/partner-organisation/{organisationId}/spend-profile")
    public RestResult<Void> saveSpendProfile(@PathVariable("projectId") final long projectId,
                                             @PathVariable("organisationId") final long organisationId,
                                             @RequestBody SpendProfileTableResource table) {

        ProjectOrganisationCompositeId projectOrganisationCompositeId = new ProjectOrganisationCompositeId(projectId, organisationId);
        return spendProfileService.saveSpendProfile(projectOrganisationCompositeId, table).toPostResponse();
    }

}