Exemplo n.º 1
0
        protected async Task <Notification> CreateNotificationForUser(string username, Notification n)
        {
            var notification = await notificationRepo.CreateForUser(username, n);

            await notificationHub.SendNotificationToUser(username, notification);

            return(notification);
        }