Execute code in API Controller from a razor page
I have API controllers that are work just fine
I'm trying to execute similar code via another class
Is something being sent to the API controler constructor? If so what and can I send the same thing in the razor file?
Or am I going about this the wrong way?
API Controller
Class to create user
razor file
The error I get
There is no argument given that corresponds to the required parameter 'userManager' of 'CreateUser.CreateUser(UserManager<AppUser>)'
I'm trying to execute similar code via another class
Is something being sent to the API controler constructor? If so what and can I send the same thing in the razor file?
Or am I going about this the wrong way?
API Controller
Class to create user
razor file
The error I get
There is no argument given that corresponds to the required parameter 'userManager' of 'CreateUser.CreateUser(UserManager<AppUser>)'