Refactor IPublishedContent.Parent()
This commit is contained in:
@@ -155,7 +155,7 @@ namespace Umbraco.Core.Models.PublishedContent
|
||||
/// Gets the parent of the content item.
|
||||
/// </summary>
|
||||
/// <remarks>The parent of root content is <c>null</c>.</remarks>
|
||||
IPublishedContent Parent { get; }
|
||||
IPublishedContent Parent();
|
||||
|
||||
/// <summary>
|
||||
/// Gets the children of the content item.
|
||||
|
||||
@@ -113,7 +113,7 @@ namespace Umbraco.Core.Models.PublishedContent
|
||||
#region Tree
|
||||
|
||||
/// <inheritdoc />
|
||||
public virtual IPublishedContent Parent => _content.Parent;
|
||||
public virtual IPublishedContent Parent() => _content.Parent();
|
||||
|
||||
/// <inheritdoc />
|
||||
public virtual IEnumerable<IPublishedContent> Children => _content.Children;
|
||||
|
||||
Reference in New Issue
Block a user