コード例 #1
0
        public async Task <List <Provider_item> > DeleteProvider_itemAsync(List <Provider_item> listProvider_item)
        {
            List <Provider_item> result = new List <Provider_item>();

            checkServiceCommunication();
            List <Provider_item> gateWayResultList = await _gateWayItem.DeleteProvider_itemAsync(listProvider_item);

            if (gateWayResultList.Count == 0)
            {
                foreach (Provider_item provider_item in listProvider_item)
                {
                    int returnValue = _dataSet.DeleteProvider_item(provider_item.ID);
                    if (returnValue > 0)
                    {
                        result.Add(provider_item);
                    }
                }
            }
            return(result);
        }