As an expat Contractor - I am exploring a payrole solutions.

One company has proposes local pay & tax with funds going to a swiss investment fund.

Can anyone tell me, is this legal? Or is it considered evasion?