Esempio n. 1
0
        protected async Task <bool> UserHasAlreadyReceivedNotification(User user, Event mobEvent)
        {
            // Get list of notification events user has already received for the event
            var notifications = await UserNotificationRepository.GetUserNotifications(user.Id, mobEvent.Id).ConfigureAwait(false);

            // Verify that the user has not already received this type of notification for this event
            return(notifications.Any(un => un.UserNotificationTypeId == (int)NotificationType));
        }