예제 #1
0
        private void DeleteSubscription(Guid socialSubscriptionId)
        {
            var socialSubscription = new SocialSubscription(UserConnection);
            var conditions         = new Dictionary <string, object> {
                { "Id", socialSubscriptionId }
            };

            if (!socialSubscription.FetchFromDB(conditions))
            {
                return;
            }
            socialSubscription.Delete();
        }
예제 #2
0
        private void DeleteSocialSubscription(Guid sysAdminUnitId, Guid entityId)
        {
            var socialSubscription = new SocialSubscription(UserConnection);
            var conditions         = new Dictionary <string, object> {
                { "SysAdminUnit", sysAdminUnitId },
                { "EntityId", entityId }
            };

            if (!socialSubscription.FetchFromDB(conditions))
            {
                return;
            }
            InnerCheckCanUnsubscribe(socialSubscription);
            socialSubscription.Delete();
        }