public ExtendedCollection<City> GetCityList(int SID) { ExtendedCollection<City> list = new ExtendedCollection<City>(); StateID = SID; IDataReader dr = GetData; while (dr.Read()) { City item = new City(); if (dr["City_Name"] != DBNull.Value) { item.Name = (string)dr["City_Name"]; } if (dr["City_ID"] != DBNull.Value) { item.ID = (int)dr["City_ID"]; } list.Add(item); } dr.Close(); return list; }
public override int Add(City c) { string name = c.Name; int id = c.ID; return Blogic.AddNewCity(name, id); }
public virtual int Deactivate(City c) { return 0; }
public virtual int Update(City c) { return 0; }
public virtual int Add(City c) { return 0; }