public void DeleteSentNotifications()
 {
     using (new QPConnectionScope())
     {
         CommonExternalNotificationsDal.DeleteSentNotifications(QPConnectionScope.Current.DbConnection);
     }
 }
 public void UpdateUnsentNotifications(IEnumerable <int> notificationIds)
 {
     using (new QPConnectionScope())
     {
         CommonExternalNotificationsDal.UpdateUnsentNotifications(QPConnectionScope.Current.DbConnection, notificationIds);
     }
 }
 public void Insert(IEnumerable <ExternalNotificationModel> notifications)
 {
     using (new QPConnectionScope())
     {
         var xml = GetNotificationsXml(notifications);
         CommonExternalNotificationsDal.InsertNotifications(QPConnectionScope.Current.DbConnection, xml.ToString(SaveOptions.None));
     }
 }