Exemplo n.º 1
0
        public List <SelectListItem> GetOrganizationListItem()
        {
            var organizationList = examManager.GetOrganization();
            List <SelectListItem> organizationStItems = new List <SelectListItem>();

            foreach (var organization in organizationList)
            {
                var osli = new SelectListItem();
                osli.Text  = organization.Name;
                osli.Value = organization.Id.ToString();
                organizationStItems.Add(osli);
            }
            return(organizationStItems);
        }