コード例 #1
0
        public async Task <ActionResult <IEnumerable <V1DTO.UserNotificationDTO> > > GetAllPersonalActive()
        {
            var newPersonalNotifications = await _bll.Notifications.GetAllPersonalNew(User.UserGuidId());

            if (newPersonalNotifications == null)
            {
                return(NotFound(new V1DTO.MessageDTO("No new notifications found")));
            }
            return(Ok(newPersonalNotifications.Select(e => _mapper.MapUserNotificationBLLToDTO(e))));
        }