public async Task <List <Address> > DeleteAddressAsync(List <Address> listAddress) { List <Address> result = new List <Address>(); checkServiceCommunication(); List <Address> gateWayResultList = await _gateWayClient.DeleteAddressAsync(listAddress); if (gateWayResultList.Count == 0) { foreach (Address address in listAddress) { int returnResult = _dataSet.DeleteAddress(address.ID); if (returnResult > 0) { result.Add(address); } } } return(result); }