コード例 #1
0
        /// <summary>
        /// Prepares the view bags.
        /// </summary>
        private void PrepareViewBags()
        {
            var types = new List <EnumTypePerson>();

            types.Add(EnumTypePerson.NATURAL);
            types.Add(EnumTypePerson.LEGAL);
            ViewBag.Types = types;

            var genders = new List <EnumGender>();

            genders.Add(EnumGender.MALE);
            genders.Add(EnumGender.FEMALE);
            ViewBag.Genders = genders;

            ViewBag.Countries = CountryHelper.GetAllCountries();
        }
コード例 #2
0
 public IEnumerable <Country> GetCountryCodes()
 {
     return(CountryHelper.GetAllCountries());
 }