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); }
public ActionResult CloseNotification(UserNotificationModel model) { return ClosePopUpResult(); }
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" }); }