How Can I get user infromation by using his id ,,?? **in asp.net core & angular 7
4 Answer(s)
-
0
Hi, you can modify
FindUsersin CommonLookupService to filter byinput.Ids. Then use the first users in the responses.Otherwise, you can also add
FindUserById()in UserAppService.Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
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.userin html files:
{{appSession.user}}Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
-
0
can you share the exception stacktrace?
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)

