public async Task <List <Order_item> > DeleteOrder_itemAsync(List <Order_item> listOrder_item) { List <Order_item> result = new List <Order_item>(); checkServiceCommunication(); List <Order_item> gateWayResultList = await _gatewayOrder.DeleteOrder_itemAsync(listOrder_item); if (gateWayResultList.Count == 0) { foreach (Order_item order_item in listOrder_item) { int returnValue = _dataSet.DeleteOrder_item(order_item.ID); if (returnValue > 0) { result.Add(order_item); } } } return(result); }