GetEntityListItems() public method

Returns the EntityTypes as a grouped collection of ListItems with the "Common" flag set to true.
public GetEntityListItems ( ) : List
return List
Ejemplo n.º 1
0
        /// <summary>
        /// Loads the drop downs.
        /// </summary>
        private void LoadDropDowns( DataView dataView )
        {
            var entityTypeService = new EntityTypeService(new RockContext());

            ddlEntityType.Items.Clear();
            ddlEntityType.Items.Add( new ListItem( string.Empty, string.Empty ) );
            entityTypeService.GetEntityListItems().ForEach( l => ddlEntityType.Items.Add( l ) );
        }