/// <summary> /// Loads current sites from DB. /// </summary> private void GetCurrentSites() { DataSet serverSites = SMTPServerSiteInfoProvider.GetSMTPServerSites().WhereEquals("ServerID", smtpServer.ServerID).OrderBy("SiteID"); if (!DataHelper.DataSourceIsEmpty(serverSites)) { currentValues = TextHelper.Join(";", DataHelper.GetStringValues(serverSites.Tables[0], "SiteID")); } else { currentValues = string.Empty; } }
/// <summary> /// Loads current sites from DB. /// </summary> private void GetCurrentSites() { string where = string.Format("ServerID = {0}", smtpServer.ServerID); serverSites = SMTPServerSiteInfoProvider.GetSMTPServerSites(where, "SiteID"); if (!DataHelper.DataSourceIsEmpty(serverSites)) { currentValues = TextHelper.Join(";", SystemDataHelper.GetStringValues(serverSites.Tables[0], "SiteID")); } else { currentValues = string.Empty; } }