class CompetitionSetupFinanceServiceImpl extends BaseTransactionalService implements
        CompetitionSetupFinanceService {

    @Override
    @Transactional
    public ServiceResult<Void> save(CompetitionSetupFinanceResource compSetupFinanceRes) {
        return getCompetition(compSetupFinanceRes.getCompetitionId()).andOnSuccess(competition -> {
            competition.setApplicationFinanceType(compSetupFinanceRes.getApplicationFinanceType());
            competition.setIncludeJesForm(compSetupFinanceRes.getIncludeJesForm());
            competition.setIncludeProjectGrowthTable(compSetupFinanceRes.getIncludeGrowthTable());
            competition.setIncludeYourOrganisationSection(compSetupFinanceRes.getIncludeYourOrganisationSection());
            return serviceSuccess();
        });
    }

}