How to get the role id from user role table in asp net

前端 未结 0 1499
一个人的身影
一个人的身影 2020-12-30 23:22

I have been trying to get the role id from Identity user role table. I can only get the role name using

var role = await _userManager.GetRolesAsync(user); 


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题