Exemplo n.º 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);
     }
 }
Exemplo n.º 2
0
 public void NotifyForRoles(NotificationToRole Notification)
 {
     throw new NotImplementedException();
 }