in invoke code you need to give the code directly no need to declare classes and all…it does not support
also any input and output arguments you need are to be added usign edit arguments
think of it like this…invoke code activity itself offer the public class method and edit arguments give you the input and output arguments…so use your code inside it directly…remove any class or anything
cheers