/// <summary>
        /// Deleted a queued sms
        /// </summary>
        /// <param name="queuedSms">Queued sms</param>
        public virtual void DeleteQueuedSms(QueuedSms queuedSms)
        {
            if (queuedSms == null)
                throw new ArgumentNullException("queuedSms");

            _queuedSmsRepository.Delete(queuedSms);

            //event notification
            _eventPublisher.EntityDeleted(queuedSms);
        }
        /// <summary>
        /// Sends SMS
        /// </summary>
        /// <param name="text">SMS text</param>
        /// <returns>Result</returns>
        public bool SendSms(string text)
        {
            try
            {
                //var client = new TwilioRestClient(Properties.Settings.Default.Nop_Plugin_SMS_Twillio_Account_Sid, Properties.Settings.Default.Nop_Plugin_SMS_Twillio_Auth_Token);                
                //client.SendMessage(Properties.Settings.Default.Nop_Plugin_SMS_Twillio_Trial_Number, _twillioSettings.SmsNumber, "Test Message");
                var queuedSms = new QueuedSms()
                {
                    Priority = 5,
                    From = Properties.Settings.Default.Nop_Plugin_SMS_Twillio_Trial_Number,
                    To = _twillioSettings.SmsNumber,
                    Body = "test",
                    CreatedOnUtc = DateTime.UtcNow
                };

                _queuedSmsService.InsertQueuedSms(queuedSms);

                //var SmsAccount = _emailAccountService.GetEmailAccountById(_emailAccountSettings.DefaultEmailAccountId);
                //if (emailAccount == null)
                //    emailAccount = _emailAccountService.GetAllEmailAccounts().FirstOrDefault();
                //if (emailAccount == null)
                //    throw new Exception("No email account could be loaded");

                //var queuedEmail = new QueuedEmail()
                //{
                //    Priority = 5,
                //    From = emailAccount.Email,
                //    FromName = emailAccount.DisplayName,
                //    To = _twillioSettings.SmsNumber,
                //    ToName = string.Empty,
                //    Subject = _storeContext.CurrentStore.Name,
                //    Body = text,
                //    CreatedOnUtc = DateTime.UtcNow,
                //    EmailAccountId = emailAccount.Id
                //};

                //_queuedSmsService.InsertQueuedEmail(queuedEmail);

                return true;
            }
            catch (Exception ex)
            {
                _logger.Error(ex.Message, ex);
                return false;
            }
        }