Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static string AttributeValue(IEnumerable<ItemAttributeDTO> attributes, string attributeName)
- {
- if (attributes == null || attributeName == null) return string.Empty;
- foreach (var attribute in attributes)
- {
- if (attribute == null || attribute.AttributeType == null) return null;
- if (attribute.AttributeType.TypeName == attributeName)
- {
- return attribute.Value;
- }
- }
- return null;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement