Search Results for

    Show / Hide Table of Contents
    View Source

    Class SectionController

    The API controller used for using the list of sections

    Inheritance
    System.Object
    Microsoft.AspNetCore.Mvc.ControllerBase
    UmbracoApiControllerBase
    UmbracoApiController
    UmbracoAuthorizedApiController
    UmbracoAuthorizedJsonController
    Namespace: Umbraco.Cms.Web.BackOffice.Controllers
    Assembly: Umbraco.Web.BackOffice.dll
    Syntax
    [PluginController("UmbracoApi")]
    public class SectionController : UmbracoAuthorizedJsonController, IUmbracoFeature, IDiscoverable

    Constructors

    View Source

    SectionController(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 Source

    GetAllSections()

    Returns all the sections that the user has access to

    Declaration
    public IEnumerable<Section> GetAllSections()
    Returns
    Type Description
    IEnumerable<Section>
    View Source

    GetSections()

    Declaration
    public async Task<ActionResult<IEnumerable<Section>>> GetSections()
    Returns
    Type Description
    Task<Microsoft.AspNetCore.Mvc.ActionResult<IEnumerable<Section>>>
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • SectionController(IBackOfficeSecurityAccessor, ILocalizedTextService, IDashboardService, ISectionService, ITreeService, IUmbracoMapper, IControllerFactory, IActionDescriptorCollectionProvider)
    • Methods
      • GetAllSections()
      • GetSections()
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX