Class SectionController
The API controller used for using the list of sections
Inheritance
System.Object
Microsoft.AspNetCore.Mvc.ControllerBase
Namespace: Umbraco.Cms.Web.BackOffice.Controllers
Assembly: Umbraco.Web.BackOffice.dll
Syntax
public class SectionController : UmbracoAuthorizedJsonController
Constructors
View SourceSectionController(IBackOfficeSecurityAccessor, ILocalizedTextService, IDashboardService, ISectionService, ITreeService, IUmbracoMapper, IControllerFactory, IActionDescriptorCollectionProvider)
Declaration
public SectionController(IBackOfficeSecurityAccessor backofficeSecurityAccessor, ILocalizedTextService localizedTextService, IDashboardService dashboardService, ISectionService sectionService, ITreeService treeService, IUmbracoMapper umbracoMapper, IControllerFactory controllerFactory, IActionDescriptorCollectionProvider actionDescriptorCollectionProvider)
Parameters
Type | Name | Description |
---|---|---|
IBackOfficeSecurityAccessor | backofficeSecurityAccessor | |
ILocalizedTextService | localizedTextService | |
IDashboardService | dashboardService | |
ISectionService | sectionService | |
ITreeService | treeService | |
IUmbracoMapper | umbracoMapper | |
Microsoft.AspNetCore.Mvc.Controllers.IControllerFactory | controllerFactory | |
Microsoft.AspNetCore.Mvc.Infrastructure.IActionDescriptorCollectionProvider | actionDescriptorCollectionProvider |
Methods
View SourceGetAllSections()
Returns all the sections that the user has access to
Declaration
public IEnumerable<Section?> GetAllSections()
Returns
Type | Description |
---|---|
IEnumerable<System.Nullable<Section>> |
GetSections()
Declaration
public async Task<ActionResult<IEnumerable<Section>>> GetSections()
Returns
Type | Description |
---|---|
Task<Microsoft.AspNetCore.Mvc.ActionResult<IEnumerable<Section>>> |