public async Task <List <Auto_ref> > DeleteAuto_refAsync(List <Auto_ref> listAuto_ref) { List <Auto_ref> result = new List <Auto_ref>(); checkServiceCommunication(); List <Auto_ref> gateWayResultList = await _gateWayItem.DeleteAuto_refAsync(listAuto_ref); if (gateWayResultList.Count == 0) { foreach (Auto_ref Auto_ref in listAuto_ref) { int returnValue = _dataSet.DeleteAuto_ref(Auto_ref.ID); if (returnValue > 0) { result.Add(Auto_ref); } } } return(result); }