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