Beispiel #1
0
        public ActionResult _UserNotifications()
        {
            var notifications = _userServiceAgent.GetUserNotifications(User.Identity.GetUserId());
            var objmodel      = notifications.Select(m => new UserNotificationViewModel()
            {
                NotificationId     = m.NotificationId,
                NotificationType   = m.NotificationType,
                User               = _defaultHelper.GetUserModel("", m.User),
                NotificationStatus = m.NotificationStatus,
                CreatedOn          = m.CreatedOn,
                TotalNotifications = m.TotalNotifications
            }).ToList();

            return(PartialView(objmodel));
        }