Beispiel #1
0
 public void UpdateNotification(Core.Notification.Notification notification)
 {
     using (var repository = _repositoryFactory())
     {
         repository.Update(notification.ToDataModel());
         repository.UnitOfWork.Commit();
     }
 }
Beispiel #2
0
        public void SheduleSendNotification(Core.Notification.Notification notification)
        {
            ResolveTemplate(notification);

            using (var repository = _repositoryFactory())
            {
                var addedNotification = notification.ToDataModel();
                repository.Add(addedNotification);
                repository.UnitOfWork.Commit();
            }
        }
        public void SheduleSendNotification(Core.Notification.Notification notification)
        {
            ResolveTemplate(notification);

            using (var repository = _repositoryFactory())
            {
                notification.Id = Guid.NewGuid().ToString("N");
                repository.Add(notification.ToDataModel());
                repository.UnitOfWork.Commit();
            }
        }