Exemple #1
0
 public void NotifyForRoles(NotificationToRole Notification)
 {
     try
     {
         List <int> DestinationPersons = GetUsersByRole(Notification.CommunityID, Notification.RolesID);
         using (ISession currentSession = BasicSessionMgr.GetSession())
         {
             if (currentSession != null)
             {
                 NotificationRepository oDal = new NotificationRepository(currentSession, GetCachedTemplates());
                 oDal.AddNotificationMessage(Notification, DestinationPersons);
             }
         }
     }
     catch (Exception ex)
     {
         ErrorHandler pError = new ErrorHandler();
         pError.addMessageToPoisonQueue(Notification, ex);
     }
 }
Exemple #2
0
 public void NotifyForRoles(NotificationToRole Notification)
 {
     throw new NotImplementedException();
 }