asp.net mvc - Is there a way to search users of application via userId while using Identity? -


im curious if there technique search users of application using userid. im using asp.net mvc authentication enabled.i want same thing stackoveflow when visit personal page example stackoverflow_.com/users/7416543/username im not sure here seems have userscontroller userid. can scratch building own models,controllers , views no authentication enabled there way incorporate identityusers(applicationusers class). seems have own system thats obtrusive when trying pull data out of tables aspnetusers.its been giving me hard time.im curious if have make usermodel , link userid aspnetusers foreign key on new model. if knows way accomplish great.

use usermanager<applicationuser>:

var users = this.usermanager.users     .where(p => p.userid == "yourvalue")     .tolist(); 

Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -