How Can I get user infromation by using his id ,,?? **in asp.net core & angular 7
4 Answer(s)
-
0
Hi, you can modify
FindUsers
in CommonLookupService to filter byinput.Ids
. Then use the first users in the responses.Otherwise, you can also add
FindUserById()
in UserAppService. -
0
Hi @Palcodeveloper
AspNet Zero gets basic information about user and the user's tenant at the app startup. You can access this information inside your app by injecting AppSessionService(app-session.service.ts) to your component.
Almost all of the components in AspNet Zero implements AppComponentBase and it already injects AppSessionService. So probably you can access this information like below:
in ts files:
this.appSession.user
in html files:
{{appSession.user}}
-
0
-
0
can you share the exception stacktrace?