Files
OurUmbraco/uRelease/Controllers/NodeExtensions.cs
T
2014-01-03 14:05:30 +01:00

14 lines
354 B
C#

using System.Linq;
using umbraco.interfaces;
namespace uRelease.Controllers
{
public static class NodeExtensions
{
public static string GetPropertyValue(this INode release, string propertyAlias)
{
return release.GetProperty(propertyAlias) == null ? "" : release.GetProperty(propertyAlias).Value;
}
}
}