Пример #1
0
        public SelectListItem[] GetEntityNames(string excludeEntity)
        {
            var entities = _contentDefinitionManager.ListUserDefinedTypeDefinitions();

            return(entities == null
                ? null
                : (from entity in entities
                   where entity.Name != excludeEntity
                   select new SelectListItem {
                Value = entity.Name,
                Text = entity.DisplayName,
                Selected = false
            }).ToArray());
        }