private async Task SendInitialNotifications(SendUserNotificationDto[] notifications)
 {
     foreach (var notification in notifications)
     {
         await _manager.SendNotificationAsync(notification);
     }
 }
        public Task SendNotificationAsync(CreateUserNotificationDto notification, int millsecondsDelay = 0)
        {
            var record = _notificationRespository.Save(new UserNotificationRecord
            {
                UserId  = notification.UserId,
                Subject = notification.Subject,
                Message = notification.Message,
                isLink  = notification.isLink,
                Link    = notification.Link,
                Seen    = false
            });

            return(_notificationHubManager.SendNotificationAsync(new SendUserNotificationDto(record), millsecondsDelay));
        }