private List <LGA> GetLgas(string stateId) { if (string.IsNullOrEmpty(stateId)) { return(null); } List <LGA> lgas = LGA.GetLGAs(stateId).OrderBy(l => l.LGAName).ToList(); return(lgas); }
private void LoadAddressLgas(string stateId) { AddressLgaCombo.Items.Clear(); if (string.IsNullOrEmpty(stateId)) { return; } AddressLgaCombo.DataSource = LGA.GetLGAs(stateId).OrderBy(l => l.LGAName); AddressLgaCombo.TextField = "LGAName"; AddressLgaCombo.ValueField = "LGAId"; AddressLgaCombo.DataBind(); }