示例#1
0
        private string GetUmbracoPropertyValue(PropertyCollection properties, string propertyAlias)
        {
            if (!properties.HasValues())
            {
                return(null);
            }

            var property = properties.FirstOrDefault(prop => prop.Alias == propertyAlias);

            if (!property.HasValues())
            {
                return(null);
            }

            return(string.Join(string.Empty, property.Values.Select(value => value.EditedValue?.ToString() ?? string.Empty).ToList()));
        }