#U4-5258 Fixed

RelationService AreRelated should accepts two entity IDs and a relationTypeAlias
This commit is contained in:
Sebastiaan Janssen
2014-08-12 10:23:11 +02:00
parent fa4a268556
commit 9fc51d8a12

View File

@@ -237,6 +237,15 @@ namespace Umbraco.Core.Services
/// <returns>Returns <c>True</c> if any relations exist between the entities, otherwise <c>False</c></returns>
bool AreRelated(IUmbracoEntity parent, IUmbracoEntity child, string relationTypeAlias);
/// <summary>
/// Checks whether two items are related
/// </summary>
/// <param name="parentId">Id of the Parent relation</param>
/// <param name="childId">Id of the Child relation</param>
/// <param name="relationTypeAlias">Alias of the type of relation to create</param>
/// <returns>Returns <c>True</c> if any relations exist between the entities, otherwise <c>False</c></returns>
bool AreRelated(int parentId, int childId, string relationTypeAlias);
/// <summary>
/// Saves a <see cref="Relation"/>
/// </summary>