都可以的。
recommend to do与recommend doing的区别:
1、意思不同
recommend to do:建议某人做某事;
I recommend you not to disobey your officers。
我劝你不要不服从你的长官。
recommend doing:建议做。
例句:Most authorities recommend letting the baby nurse whenever it wants.
大部分权威人士建议婴儿饿了就随时喂奶。
2、用法不同
recommend to do是推荐……做……事情,中间可以接sb做宾语。
例句:I wouldfinditdifficulttorecommendhimtodothejob.
我发现推荐他做这个工作很难。
recommend doing,是固定用法,中间不能接其他成分的词语。
例句:I highly recommend doing some kind of exercise in the morning.
我强烈建议在早上做点运动。
3、搭配用法
recommend to do,可以扩展为recommend sb to do sth,就是建议某人去做什么事情;
recommend doing,可以扩展为recommend doing sth,就是建议做什么事情。