returns a null for the role object.
Is anyone able to tell me what I might be doing wrong here? Any help much appreciated.
//get the manager for AppRoles provider which is the default provider for roles
RoleManager roleManager = RoleManager.GetManager(
//check in debug how many roles can be reteived from the provider
var getAllRoles = roleManager.GetRoles();
//if Member is in the list of all roles add it to the user
var role = roleManager.GetRole(
Thank you for your help, that works as I would expect now.
Possibly I'm looking in the wrong place in the documentation. I've seen no mention of the AppRoles manager until I google it specifically.