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(); }
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(); }