AjaxWithWebService.Controllers.UserAccount.HasRoleClaim C# (CSharp) Méthode

HasRoleClaim() public méthode

public HasRoleClaim ( string value ) : bool
value string
Résultat bool
        public bool HasRoleClaim(string value)
        {
            if (!IsAuthenticated) { return false; }
            return Principal.HasClaim(ClaimTypes.Role, value) ? true : false;
        }