Пример #1
0
        public async Task <IEnumerable <NotificationDto> > GetAllAndFlagUnseenAsync(int userId)
        {
            IEnumerable <Notification> notifications = await _notificationsRepository.GetAllAndFlagUnseenAsync(userId);

            var result = notifications.Select(x => _mapper.Map <NotificationDto>(x));

            return(result);
        }