View Source
Class RelationController
Inheritance
System.Object
Microsoft.AspNetCore.Mvc.ControllerBase
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
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
View Source
GetById(Int32)
Declaration
public RelationDisplay GetById(int id)
Parameters
Type |
Name |
Description |
System.Int32 |
id |
|
Returns