public IEnumerable <Notification> GetAllNotifications() { var x = NotificationQueryHandlerFactory.Build(new AllNotificationsQuery(), db); return(x.Get()); }
public Notification GetNotification(Guid id) { return(NotificationQueryHandlerFactory.Build(new OneNotificationQuery(id), db).Get()); }