// GET: /<controller>/ public IActionResult Index(Guid notificationMessageGuid, string searchValue) { try { //if id is null then user directly visited to the message box page.. if (notificationMessageGuid == Guid.Empty) { var loggedUser = UserHelper.CurrentUserGuid(HttpContext); // var loggedUser = new Guid("73526DCB-3D7E-48C0-B4A0-4BE20AE3F85C"); var notificationMessage = _notificationMessageService.GetLatestDesktopNotification(loggedUser); if (notificationMessage != null) { notificationMessageGuid = notificationMessage.NotificationMessageGuid; } } ViewBag.NotificationMessageGuid = notificationMessageGuid; return(View()); } catch (Exception ex) { return(BadRequestFormatter.BadRequest(this, ex)); } }