I am trying to create a user record based on other record getting created, I added all the code in apex class and I am trying to call apex code method in my trigger. I am getting incorrect signature error.
my apex class code signature is
public static void CreateUser(List<User> ur)
and I am calling this method in my trigger like
Usercreation_controller.CreateUser (Trigger.new);
I tried to pass arguments as ur. I am able to save the code, but the user record is not getting created