public static async Task <ConstantContactBulkResponse> ClearConstantContactList(string listId)
        {
            var work = new ContactLists {
                Lists = new string[] { listId }
            };

            var bulkActivitiesService     = ConstantContactHelper.BulkListsService();
            BulkActivityResponse response = await bulkActivitiesService.ClearContactListsAsync(work);

            return(new ConstantContactBulkResponse
            {
                Id = response.Id,
                ContactCount = int.Parse(response.ContactCount),
                ErrorCount = int.Parse(response.ErrorCount)
            });
        }
        public static async Task <ConstantContactBulkResponse> ExportConstantContactList(List <ConstantContactMember> members, string listId)
        {
            var listNames = new List <string> {
                listId
            };

            ContactImport import = BuildContactImport(members, listNames);

            var bulkActivitiesService = ConstantContactHelper.BulkListsService();

            BulkActivityResponse response = await bulkActivitiesService.ImportContactsAsync(import);


            return(new ConstantContactBulkResponse
            {
                Id = response.Id,
                ContactCount = int.Parse(response.ContactCount),
                ErrorCount = int.Parse(response.ErrorCount)
            });
        }