Example #1
0
        public ActionResult UserNotification(int notificationId)
        {
            var userId = CloudCoreIdentity.UserId;

            var model = new UserNotificationModel();
            model.LoadUserNotificationAndMarkAsRead(userId, notificationId);

            SessionInfo.HasNotifications = CloudCoreDB.Context.Cloudcore_VwUserNotification.Where(un => un.UserId == userId && un.HasRead == false).Any();

            return PartialView(model);
        }
Example #2
0
 public ActionResult CloseNotification(UserNotificationModel model)
 {
     return ClosePopUpResult();
 }
Example #3
0
 public ActionResult UserNotification(UserNotificationModel model)
 {
     CloudCoreDB.Context.Cloudcore_NotificationRemove((int)model.NotificationId, CloudCoreIdentity.UserId);
     ShowSuccessMessage("Notification successfully removed");
     return RedirectToAction("Notifications", "Tools", new { area = "CUI" });
 }