TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Søren Christensen
NA
6
2.1k
Access to AspNetUsers table from outside AccountController
Sep 30 2018 2:15 PM
Hi
I have a MVC projekt running and I'm using Identity. My problem is that I would like to use the email and phonenumber of users throughout the application, but there I cannot find an easy way to access these data (except for the signed in user). I need to send SMS and email to one user o behalf of another user, so I need some kind of lookup function.
I have the UserId stored in a different table so I have that, but need access.
What would be best practice to gain access to these information from e.g. a server layer? Should I store the information double so I have it in my own "Users" table? - and how would I ensure that the information is updated when AspNetUsers is?
Thanks in advance for any help
/Søren
Reply
Answers (
1
)
find country name from ip address using c#
How to extend session time out in MVC?