/// <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(); }
public IEnumerable <Country> GetCountryCodes() { return(CountryHelper.GetAllCountries()); }