public async Task <List <Info> > DeleteInfoAsync(List <Info> listInfos) { List <Info> result = new List <Info>(); checkServiceCommunication(); List <Info> gateWayResultList = await _gateWayReferential.DeleteInfoAsync(listInfos); if (gateWayResultList.Count == 0) { foreach (Info infos in listInfos) { int returnValue = _dataSet.DeleteInfo(infos.ID); if (returnValue > 0) { result.Add(infos); } } } return(result); }