0
lalitChougule created
I want to create a user from my custom appService i.e I just want to call create() method of UserAppService from my custom appService. Which Interface do I have to inject in my appService ?
Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
3 Answer(s)
-
0
Hi,
You can inject
IdentityUserManager. it hasCreateAsyncmethod for creating users.Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Hi,
I am able to create user using
IdentityUserManager.CreateAsyncmethod but once the user is created I want to return the inserted userId.How to get inserted UserId ?
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Objects are passed by reference, you can get the id from the user object after the unit of work is saved.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)