예제 #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);
        }
예제 #2
0
 public void Update(QueuedSms smsMessage)
 {
     queuedSmsRepository.Update(smsMessage);
 }