Beispiel #1
0
        public Guid SendSmsMessage(string fromNumber, string toNumber, string message)
        {
            var queuedSms = new QueuedSms
            {
                Id           = Guid.NewGuid(),
                Priority     = 5,
                FromNumber   = fromNumber,
                ToNumber     = toNumber,
                Message      = message,
                CreatedOnUtc = DateTime.UtcNow
            };

            queuedSmsRepository.Insert(queuedSms);

            return(queuedSms.Id);
        }
Beispiel #2
0
 public void Update(QueuedSms smsMessage)
 {
     queuedSmsRepository.Update(smsMessage);
 }