Search Results for

    Show / Hide Table of Contents
    View Source

    Class RelationController

    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")]
    [Authorize(Policy = "SectionAccessContent")]
    public class RelationController : UmbracoAuthorizedJsonController, IUmbracoFeature, IDiscoverable

    Constructors

    View Source

    RelationController(IUmbracoMapper, IRelationService)

    Declaration
    public RelationController(IUmbracoMapper umbracoMapper, IRelationService relationService)
    Parameters
    Type Name Description
    IUmbracoMapper umbracoMapper
    IRelationService relationService

    Methods

    View Source

    GetByChildId(Int32, String)

    Declaration
    public IEnumerable<RelationDisplay> GetByChildId(int childId, string relationTypeAlias = "")
    Parameters
    Type Name Description
    System.Int32 childId
    System.String relationTypeAlias
    Returns
    Type Description
    IEnumerable<RelationDisplay>
    View Source

    GetById(Int32)

    Declaration
    public RelationDisplay GetById(int id)
    Parameters
    Type Name Description
    System.Int32 id
    Returns
    Type Description
    RelationDisplay
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • RelationController(IUmbracoMapper, IRelationService)
    • Methods
      • GetByChildId(Int32, String)
      • GetById(Int32)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX