Fixed: Do not allow to delete a domain when used by hosting organization objects
This commit is contained in:
parent
18a4608ad2
commit
3e8a53a468
8 changed files with 64 additions and 5 deletions
|
@ -829,6 +829,22 @@ namespace WebsitePanel.EnterpriseServer
|
|||
return Convert.ToInt32(prmId.Value);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public static int CheckDomainUsedByHostedOrganization(string domainName)
|
||||
{
|
||||
SqlParameter prmId = new SqlParameter("@Result", SqlDbType.Int);
|
||||
prmId.Direction = ParameterDirection.Output;
|
||||
|
||||
SqlHelper.ExecuteNonQuery(ConnectionString, CommandType.StoredProcedure,
|
||||
ObjectQualifier + "CheckDomainUsedByHostedOrganization",
|
||||
prmId,
|
||||
new SqlParameter("@domainName", domainName));
|
||||
|
||||
return Convert.ToInt32(prmId.Value);
|
||||
}
|
||||
|
||||
|
||||
public static int AddDomain(int actorId, int packageId, int zoneItemId, string domainName,
|
||||
bool hostingAllowed, int webSiteId, int mailDomainId, bool isSubDomain, bool isInstantAlias, bool isDomainPointer)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue