Пример #1
0
        public async Task <IList <Alert> > GetAlertsForNotificationAsync(int notificationId, ClaimsPrincipal user)
        {
            var alerts = await _alertRepository.GetOpenAlertsForNotificationAsync(notificationId);

            var filteredAlerts = await _authorizationService.FilterAlertsForUserAsync(user, alerts);

            return(filteredAlerts);
        }