AgGateway.ADAPT.ISOv4Plugin.Writers.CustomerWriter.GetContactForType C# (CSharp) Method

GetContactForType() private static method

private static GetContactForType ( List contacts, ContactTypeEnum contactType ) : string
contacts List
contactType ContactTypeEnum
return string
        private static string GetContactForType(List<Contact> contacts, ContactTypeEnum contactType)
        {
            foreach (var contact in contacts)
            {
                if (contact.Type == contactType)
                    return contact.Number;
            }
            return null;
        }