public static List <string> GetAttributeValues(string attributeName, AttributeCollection attributes) { List <string> strs; List <string> values = new List <string>(); List <Imanami.GroupID.DataTransferObjects.DataContracts.Services.Attribute> attributesList = AttributesHelper.GetAttributes(attributeName, attributes); if (attributesList != null) { foreach (Imanami.GroupID.DataTransferObjects.DataContracts.Services.Attribute attribute in attributesList) { if (!StringUtility.IsBlank(attribute.get_Value())) { values.Add(attribute.get_Value()); } } strs = values; } else { strs = values; } return(strs); }
public static string GetValueAsFormattedDatetime(string attributeName, AttributeCollection attributes) { return(AttributesHelper.GetValueAsFormattedDatetime(AttributesHelper.GetAttributes(attributeName, attributes))); }