public async Task <List <Item> > DeleteItemAsync(List <Item> listItem) { List <Item> result = new List <Item>(); checkServiceCommunication(); List <Item> gateWayResultList = await _gateWayItem.DeleteItemAsync(listItem); if (gateWayResultList.Count == 0) { foreach (Item item in listItem) { int returnValue = _dataSet.DeleteItem(item.ID); if (returnValue > 0) { result.Add(item); } } } return(result); }