private void CreateDomainProduct() { if (!Page.IsValid) { return; } try { string tld = txtDomainTLD.Text.Trim(); // int pluginId = Convert.ToInt32(ddlTLDRegistrar.SelectedValue); // string productSku = txtProductSku.Text.Trim(); // bool taxInclusive = chkTaxInclusive.Checked; // bool whoisEnabled = chkWhoisEnabled.Checked; // bool enabled = Convert.ToBoolean(rblTLDStatus.SelectedValue); // DomainNameCycle[] cycles = ctlBillingCycles.GetDomainNameCycles(); int result = StorehouseHelper.AddTopLevelDomain(tld, productSku, taxInclusive, pluginId, enabled, whoisEnabled, cycles); if (result <= 0) { ShowResultMessage(result); return; } } catch (Exception ex) { ShowErrorMessage("DOMAIN_PRODUCT_SAVE", ex); return; } RedirectToBrowsePage(); }