Class SectionController
- Namespace
- Umbraco.Cms.Web.BackOffice.Controllers
- Assembly
- Umbraco.Web.BackOffice.dll
The API controller used for using the list of sections
public class SectionController : UmbracoAuthorizedJsonController
- Inheritance
-
SectionController
- Inherited Members
Constructors
SectionController(IBackOfficeSecurityAccessor, ILocalizedTextService, IDashboardService, ISectionService, ITreeService, IUmbracoMapper, IControllerFactory, IActionDescriptorCollectionProvider)
public SectionController(IBackOfficeSecurityAccessor backofficeSecurityAccessor, ILocalizedTextService localizedTextService, IDashboardService dashboardService, ISectionService sectionService, ITreeService treeService, IUmbracoMapper umbracoMapper, IControllerFactory controllerFactory, IActionDescriptorCollectionProvider actionDescriptorCollectionProvider)
Parameters
backofficeSecurityAccessorIBackOfficeSecurityAccessorlocalizedTextServiceILocalizedTextServicedashboardServiceIDashboardServicesectionServiceISectionServicetreeServiceITreeServiceumbracoMapperIUmbracoMappercontrollerFactoryIControllerFactoryactionDescriptorCollectionProviderIActionDescriptorCollectionProvider
Methods
GetAllSections()
Returns all the sections that the user has access to
public IEnumerable<Section?> GetAllSections()
Returns
- IEnumerable<Section>
GetSections()
public Task<ActionResult<IEnumerable<Section>>> GetSections()
Returns
- Task<ActionResult<IEnumerable<Section>>>