diff --git a/src/Umbraco.ModelsBuilder.Embedded/PublishedElementExtensions.cs b/src/Umbraco.ModelsBuilder.Embedded/PublishedElementExtensions.cs
index 2c22caf87d..29429ba74f 100644
--- a/src/Umbraco.ModelsBuilder.Embedded/PublishedElementExtensions.cs
+++ b/src/Umbraco.ModelsBuilder.Embedded/PublishedElementExtensions.cs
@@ -17,14 +17,14 @@ namespace Umbraco.Web
///
/// Gets the value of a property.
///
- public static TValue ValueByExpression(this TModel model, Expression> property, string culture = null, string segment = null, Fallback fallback = default, TValue defaultValue = default)
+ public static TValue Value(this TModel model, Expression> property, string culture = null, string segment = null, Fallback fallback = default, TValue defaultValue = default)
where TModel : IPublishedElement
{
var alias = GetAlias(model, property);
return model.Value(alias, culture, segment, fallback, defaultValue);
}
- //This cannot be public due to ambiguous issue with external ModelsBuilder if we do not rename.
+ // fixme that one should be public so ppl can use it
private static string GetAlias(TModel model, Expression> property)
{
if (property.NodeType != ExpressionType.Lambda)
@@ -45,7 +45,7 @@ namespace Umbraco.Web
var attribute = member.GetCustomAttribute();
if (attribute == null)
throw new InvalidOperationException("Property is not marked with ImplementPropertyType attribute.");
-
+
return attribute.Alias;
}
}