Using ASP.net Core, I receive information from my API. In Angular, the data looks like this:
0: {Id: 3, Role_Name: 'ITAdmin'}
1: {Id: 4, Role_Name: 'Admin'}
2: {Id: 5, Role_Name: 'user'}
I want to extract values from this array for my Current User. Something similar to storing them in an array or another method.
var rolename = ITAdmin, Admin, User
var id = 3, 4, 5
To display the role name and its corresponding ID separately.
Thank you for your assistance :)