Exemple #1
0
        public Result <IQueryable <UserNotification>, OperationError> GetNotificationsForUser(int organizationId, int userId, RelatedEntityType relatedEntityType)
        {
            if (!IsActiveUser(userId))
            {
                return(new OperationError(OperationFailure.Forbidden));
            }

            return(_userNotificationService.GetNotificationsForUser(organizationId, userId, relatedEntityType));
        }