Esempio n. 1
0
        internal async Task DeleteOrganization(Organization organization)
        {
            List <Subscription> relatedSubscriptions = GetSubscriptionListByOrgId(organization.Id);
            await TableUtil.DeleteCoreTableItem(organization, Tables.Organizations);

            //Delete all subscriptions associated with the organization
            foreach (Subscription relatedSubscription in relatedSubscriptions)
            {
                await DeleteSubscription(relatedSubscription);
            }
        }
Esempio n. 2
0
 internal async Task DeleteSubscription(Subscription subscription)
 {
     await TableUtil.DeleteCoreTableItem(subscription, Tables.Subscription);
 }