private void Initialize() { StandardMessages.WelcomeMessage(); countryCodes = apiHelper.GetCountryCode(Constants.PrintfulCountryCodeURI).Result; StandardMessages.InitializationCompletedMessage(); }
public string GetCountry(string id) { return(CountryCodes.Where(r => r.CountryCodeID == id).Select(r => r.Name).FirstOrDefault()); }
public Address() { AddressId = 0; Address1 = String.Empty; Address2 = String.Empty; Address3 = String.Empty; City = String.Empty; State = StateCodes.CA; ZipCode = String.Empty; Province = String.Empty; CountryCode = CountryCodes.UnitedStates; }
public Address(long addressId, string address1, string address2, string address3, string city, StateCodes state, string zipcode, string province, CountryCodes countrycode) : this() { AddressId = addressId; Address1 = address1; Address2 = address2; Address3 = address3; City = city; State = state; ZipCode = zipcode; Province = province; CountryCode = countrycode; }
public Address(DataRow row) : this() { AddressId = long.Parse(row[0].ToString()); Address1 = row[1].ToString(); Address2 = row[2].ToString(); Address3 = row[3].ToString(); City = row[4].ToString(); State = (StateCodes)Enum.Parse( typeof(StateCodes), row[5].ToString()); ZipCode = row[6].ToString(); Province = row[7].ToString(); CountryCode = (CountryCodes)Enum.Parse( typeof(CountryCodes), row[8].ToString()); }