public bool HasClaim(string type, string value) { if (!IsAuthenticated) { return false; } return Principal.HasClaim(type, value) ? true : false; }