public IList <NotificationListItemModel> GetNotificationListItems(NotificationType[] notificationType, int?dayRange) { var notifications = NotificationServices.GetNotifications(CurrentCedUser.CurrentUser.Email, notificationType, dayRange); if (notifications != null) { foreach (var notif in notifications) { notif.Description = _inAppNotificationHelper.GetDescription(notif); } } var listItems = Mapper.Map <IList <NotificationEntity>, IList <NotificationListItemModel> >(notifications); return(listItems); }