Exemplo n.º 1
0
        public async Task <UserNotification> GetUserNotificationAsync(int?tenantId, Guid userNotificationId)
        {
            var userNotification = await store.GetUserNotificationWithNotificationOrNullAsync(
                tenantId, userNotificationId
                );

            return(userNotification?.ToUserNotification());
        }
Exemplo n.º 2
0
        public async Task <UserNotification> GetUserNotificationAsync(int?tenantId, Guid userNotificationId)
        {
            var userNotification = await _store.GetUserNotificationWithNotificationOrNullAsync(tenantId, userNotificationId);

            if (userNotification == null)
            {
                return(null);
            }
            return(userNotification.ToUserNotification());
        }