public async Task <List <Order> > DeleteOrderAsync(List <Order> listOrder) { List <Order> result = new List <Order>(); checkServiceCommunication(); List <Order> gateWayResultList = await _gatewayOrder.DeleteOrderAsync(listOrder); if (gateWayResultList.Count == 0) { foreach (Order order in listOrder) { int returnValue = _dataSet.DeleteOrder(order.ID); if (returnValue > 0) { result.Add(order); } } } return(result); }