GetResumedNotifications(int userId) { var data = await Get_notifications(userId, true, true); var notifications = data .GroupBy(n => n.Type) .ToDictionary(g => g.Key, g => g.ToList()); return(NotificationBuilder.ResumeNotifications(notifications)); }