Пример #1
0
        public async Task <List <Statistic> > DeleteStatisticAsync(List <Statistic> statisticList)
        {
            List <Statistic> result = new List <Statistic>();

            checkServiceCommunication();
            List <Statistic> gateWayResultList = await _gateWayStatistic.DeleteStatisticAsync(statisticList);

            if (gateWayResultList.Count == 0)
            {
                foreach (Statistic statistic in gateWayResultList)
                {
                    int returnResult = _dataSet.DeleteStatistic(statistic.ID);
                    if (returnResult > 0)
                    {
                        result.Add(statistic);
                    }
                }
            }
            return(result);
        }