Example #1
0
        public async Task <List <Tax_item> > DeleteTax_itemAsync(List <Tax_item> listTax_item)
        {
            List <Tax_item> result = new List <Tax_item>();

            checkServiceCommunication();
            List <Tax_item> gateWayResultList = await _gateWayItem.DeleteTax_itemAsync(listTax_item);

            if (gateWayResultList.Count == 0)
            {
                foreach (Tax_item Tax_item in listTax_item)
                {
                    int returnValue = _dataSet.DeleteTax_item(Tax_item.ID);
                    if (returnValue > 0)
                    {
                        result.Add(Tax_item);
                    }
                }
            }
            return(result);
        }