Esempio n. 1
0
        public async Task <List <Notification> > DeleteNotificationAsync(List <Notification> listNotification)
        {
            List <Notification> result = new List <Notification>();

            checkServiceCommunication();
            List <Notification> gateWayResultList = await _gateWayNotification.DeleteNotificationAsync(listNotification);

            if (gateWayResultList.Count == 0)
            {
                foreach (Notification notification in gateWayResultList)
                {
                    int returnResult = _dataSet.DeleteNotification(notification.ID);
                    if (returnResult > 0)
                    {
                        result.Add(notification);
                    }
                }
            }
            return(result);
        }