/// <summary>
        /// Deletes the specified groups or users and their relations including related security entries.
        /// </summary>
        protected void DeleteIdentities(IEnumerable <int> ids)
        {
            if (ids == null)
            {
                throw new ArgumentException("ids");
            }
            var activity = new DeleteIdentitiesActivity(ids);

            activity.Execute(this);
        }
        /// <summary>
        /// Deletes the specified group or user and its relations including related security entries.
        /// </summary>
        protected void DeleteIdentity(int id)
        {
            if (id == default(int))
            {
                throw new ArgumentException("The id cannot be " + default(int));
            }
            var activity = new DeleteIdentitiesActivity(new[] { id });

            activity.Execute(this);
        }