public void BindTemplates() { if (this.AllRegionIds == null) { this.AllRegionIds = RegionHelper.GetAllCitys(); } System.Collections.Generic.IList <FreightTemplate> freightTemplates = SettingsHelper.GetFreightTemplates(); this.ListTemplates.DataSource = freightTemplates; this.ListTemplates.DataBind(); if (freightTemplates.Count < 1) { this.TablefFooter.Visible = false; } }