Exemple #1
0
        public List <SelectListItem> GetNationalityList()
        {
            var model = new List <SelectListItem>();

            _nationalityRepository.GetAll().ToList().ForEach(x =>
            {
                model.Add(new SelectListItem()
                {
                    Text  = x.NationalityName,
                    Value = x.Id.ToString()
                });
            });

            return(model);
        }
 public List <Nationality> GetAllNationalities()
 {
     return(_nationalityRepository.GetAll());
 }