Пример #1
0
        public List <SelectListItem> GetAllOrganizationSlI()
        {
            var organizations = _examManager.GetAllOrganization();
            var slItems       = new List <SelectListItem>();

            foreach (var organization in organizations)
            {
                var sli = new SelectListItem();
                sli.Text  = organization.Name + " - " + organization.Code;
                sli.Value = organization.Id.ToString();
                slItems.Add(sli);
            }
            return(slItems);
        }