Name, "user name"), new Claim(ClaimTypes.Role,"admin") };. or add roles by UserManager (if you are using identity authorization):.
確定! 回上一頁