예제 #1
0
        private static Country ConvertToProperCountry(Models.Countries.Country countryEnum)
        {
            string  temp        = countryEnum.ToString();
            Country tempCountry = Country.AD;

            foreach (Country item in (Country[])Enum.GetValues(typeof(Country)))
            {
                if (item.ToString() == temp)
                {
                    tempCountry = item;
                    break;
                }
            }
            return(tempCountry);
        }
예제 #2
0
 public CountryCreated(Models.Countries.Country country)
 {
     Country = country;
 }