statto1974
Trying To Use The UserManager.IsInRoleAsync() Function In My Controller
IsInRoleAsync is expectinging an IdentityUser. The inherited User property from Controller is of type ClaimsPrincipal. You need to get the IdentityUser from _userManger first using one of the claims from the ClaimsPrincipal.
var user = await _userManager.FindByIdAsync(id);
Where id is a variable pulled out of one of the claims in the User property6 replies