Ejemplo n.º 1
0
        public static string GetCountryName(int ID)
        {
            DataTable dt = CountryDL.GetCountryList(ID);
            DataRow   dr = dt.Rows[0];

            return(dr["name"].ToString());
        }
Ejemplo n.º 2
0
 public MailingAddressDL()
 {
     CityDetails     = new CityDL();
     DistrictDetails = new DistrictDL();
     StateDetails    = new StateDL();
     CountryDetails  = new CountryDL();
 }
Ejemplo n.º 3
0
        public static List <Country> GetCountryList(string RegionID)
        {
            int            RID       = Convert.ToInt16(RegionID);
            List <Country> countries = new List <Country>();

            DataTable dt = CountryDL.GetCountryList(RID);

            foreach (DataRow dr in dt.Rows)
            {
                Country country = new Country();
                country.CountryID   = Convert.ToInt16(dr["ID"].ToString());
                country.CountryName = dr["name"].ToString();

                countries.Add(country);
            }
            return(countries);
        }