Exemplo n.º 1
0
        public static void UpdateClaims <TAccount>(this UserAccountService <TAccount> svc, Guid accountID, IEnumerable <Claim> additions = null, IEnumerable <Claim> deletions = null)
            where TAccount : UserAccount
        {
            if (svc == null)
            {
                throw new ArgumentNullException("account");
            }

            svc.UpdateClaims(accountID, new UserClaimCollection(additions), new UserClaimCollection(deletions));
        }