Exemplo n.º 1
0
        private void SendingSMS(SMSComponent smsComponent, String mobilenumber, String message, Boolean IsDeleted, Int64 InboxID, String InboxType)
        {
            try
            {
                String status = "";
                String Remark = "";
                SMSDal smsDal = new SMSDal();

                if (smsComponent.SendSMS(IsDeleted, InboxID, mobilenumber, message))
                {
                    status = "Success";
                }
                else
                {
                    status = "Failed";
                }

                if (InboxID > 0)
                {
                    Remark = "AutoReply";
                }
                else
                {
                    Remark = "Manual";
                }

                if (status == "Success")
                {
                    smsDal.OutboxSave(message, mobilenumber, status, Remark, InboxID, InboxType);
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }