From 9fc51d8a125c65e67669057daea9e516290bb9d2 Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Tue, 12 Aug 2014 10:23:11 +0200 Subject: [PATCH] #U4-5258 Fixed RelationService AreRelated should accepts two entity IDs and a relationTypeAlias --- src/Umbraco.Core/Services/IRelationService.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Umbraco.Core/Services/IRelationService.cs b/src/Umbraco.Core/Services/IRelationService.cs index 68a53d1b7f..9dcc6df615 100644 --- a/src/Umbraco.Core/Services/IRelationService.cs +++ b/src/Umbraco.Core/Services/IRelationService.cs @@ -237,6 +237,15 @@ namespace Umbraco.Core.Services /// Returns True if any relations exist between the entities, otherwise False bool AreRelated(IUmbracoEntity parent, IUmbracoEntity child, string relationTypeAlias); + /// + /// Checks whether two items are related + /// + /// Id of the Parent relation + /// Id of the Child relation + /// Alias of the type of relation to create + /// Returns True if any relations exist between the entities, otherwise False + bool AreRelated(int parentId, int childId, string relationTypeAlias); + /// /// Saves a ///