예제 #1
0
        //Notifications

        public void Do_PushNotification(NotificationType type,
                                        int userId,
                                        Dictionary <string, string> values)
        {
            Task.Run(() =>
            {
                var not = NotificationBuilder.CreateNotification(type,
                                                                 userId, values);
                Add_Notification(not);
                _notificationCtx.SaveChangesAsync().Wait();
            });
        }