AddClaimAsync(identityUser, new Claim(ClaimTypes.Role, "Administrator"));. You can then “require” in a controller action in the usual way:
確定! 回上一頁