Posted on: 10/17/2014 11:52:52 PM | Views : 685

Hi,
I have the standard ASP Identity provider which I have added an extra property to.
My Property is FriendlyName which is the screen name that I wish to display on my View. Is there a way for me to create a standard Get method which i can use in my views for e.g. User.Identity.GetUserName() I would like to use: User.Identity.GetFriendlyName()?
I know more or less what the EF query would look like
var CurrentUserId = User.Identity.GetUserId(); var FriendlyName = new ApplicationDbContext().AspNetUser.Where(z => z.Id == CurrentUserId).Select(x => x.FriendlyName); What can I do to add this?


Go to the complete details ...