14 lines
354 B
C#
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;
|
|
}
|
|
}
|
|
}
|