Exemplo n.º 1
0
        void SendMessage(QueueItem item)
        {
            clsSalesTransSMS smsSender = new clsSalesTransSMS();
            var document = lstMessages.Where(x => x.ID == item.ID).FirstOrDefault();

            smsSender.InitiateSendingDocument(document);


            //if (item.queueItemType == QueueItemType.Aging)
            //{
            //    var document = lstAgingIncoices.Where(x => x.ID == item.ID).FirstOrDefault();
            //    smsSender.InitiateSendingInvoiceAging(document);
            //}

            //send message
            //insert row in queue table
            //update main table/s
        }