How to solve compile error like this

I have solved this problem by nesting calls between contracts.