Class SectionController
The API controller used for using the list of sections
Inheritance
System.Object
Namespace: Umbraco.Web.Editors
Assembly: Umbraco.Web.dll
Syntax
[PluginController("UmbracoApi")]
public class SectionController : UmbracoAuthorizedJsonController, IDiscoverable
Constructors
View SourceSectionController(IGlobalSettings, IUmbracoContextAccessor, ISqlContext, ServiceContext, AppCaches, IProfilingLogger, IRuntimeState, IDashboardService, ISectionService, ITreeService, UmbracoHelper)
Declaration
public SectionController(IGlobalSettings globalSettings, IUmbracoContextAccessor umbracoContextAccessor, ISqlContext sqlContext, ServiceContext services, AppCaches appCaches, IProfilingLogger logger, IRuntimeState runtimeState, IDashboardService dashboardService, ISectionService sectionService, ITreeService treeService, UmbracoHelper umbracoHelper)
Parameters
Type | Name | Description |
---|---|---|
IGlobalSettings | globalSettings | |
IUmbracoContextAccessor | umbracoContextAccessor | |
ISqlContext | sqlContext | |
ServiceContext | services | |
AppCaches | appCaches | |
IProfilingLogger | logger | |
IRuntimeState | runtimeState | |
IDashboardService | dashboardService | |
ISectionService | sectionService | |
ITreeService | treeService | |
UmbracoHelper | umbracoHelper |
Methods
View SourceGetAllSections()
Returns all the sections that the user has access to
Declaration
public IEnumerable<Section> GetAllSections()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Section> |
GetSections()
Declaration
public IEnumerable<Section> GetSections()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Section> |