示例#1
0
        public async Task <List <Tax> > DeleteTaxAsync(List <Tax> listTax)
        {
            List <Tax> result = new List <Tax>();

            checkServiceCommunication();
            List <Tax> gateWayResultList = await _gatewayOrder.DeleteTaxAsync(listTax);

            if (gateWayResultList.Count == 0)
            {
                foreach (Tax tax in listTax)
                {
                    int returnValue = _dataSet.DeleteTax(tax.ID);
                    if (returnValue > 0)
                    {
                        result.Add(tax);
                    }
                }
            }
            return(result);
        }