View Source
Class RelationController
Inheritance
System.Object
Microsoft.AspNetCore.Mvc.ControllerBase
Assembly: Umbraco.Web.BackOffice.dll
Syntax
[Authorize(Policy = "SectionAccessContent")]
public class RelationController : UmbracoAuthorizedJsonController
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 |
System.Nullable<RelationDisplay> |
|