a new page with the list of associated objects to be deleted org domain. part 2

This commit is contained in:
dev_amdtel 2014-12-24 23:02:00 +04:00
parent a3349e810e
commit a80c7be8c5
5 changed files with 111 additions and 2 deletions

View file

@ -507,6 +507,15 @@ namespace WebsitePanel.EnterpriseServer
}
}
public static bool CheckDomainUsedByHostedOrganization(int itemId, int domainId)
{
DomainInfo domain = ServerController.GetDomain(domainId);
if (domain == null)
return false;
return (DataProvider.CheckDomainUsedByHostedOrganization(domain.DomainName) == 1);
}
private static void DeleteOCSUsers(int itemId, ref bool successful)
{
try