diff --git a/src/Umbraco.Core/Models/ContentBase.cs b/src/Umbraco.Core/Models/ContentBase.cs index 6beead06e6..5d0ac28779 100644 --- a/src/Umbraco.Core/Models/ContentBase.cs +++ b/src/Umbraco.Core/Models/ContentBase.cs @@ -371,6 +371,30 @@ namespace Umbraco.Core.Models SetValueOnProperty(propertyTypeAlias, val); } + /// + /// Sets the value of a Property + /// + /// Alias of the PropertyType + /// Value to set for the Property + public virtual void SetPropertyValue(string propertyTypeAlias, decimal value) + { + string val = value.ToString(); + SetValueOnProperty(propertyTypeAlias, val); + } + + /// + /// Sets the value of a Property + /// + /// Alias of the PropertyType + /// Value to set for the Property + public virtual void SetPropertyValue(string propertyTypeAlias, double value) + { + string val = value.ToString(); + SetValueOnProperty(propertyTypeAlias, val); + } + + + /// /// Sets the value of a Property ///