Example #1
0
        public IEnumerable <Notification> GetAllNotifications()
        {
            var x = NotificationQueryHandlerFactory.Build(new AllNotificationsQuery(), db);

            return(x.Get());
        }
Example #2
0
 public Notification GetNotification(Guid id)
 {
     return(NotificationQueryHandlerFactory.Build(new OneNotificationQuery(id), db).Get());
 }