usermanager does not exist code example Example: await _userManager.AddToRoleAsync(user.Id, "Admin"); await _userManager.AddToRoleAsync(user.Id, "Admin");