Beispiel #1
0
        public ActionResult Unread(int pageIndex, int pageSize)
        {
            var query    = new MessagesQueryRequest(pageIndex, pageSize);
            var messages = _messageQueryService.GetUnreadMessages(query);

            return(View("Unread", messages));
        }
        public ActionResult Unreads(int pageIndex, int pageSize)
        {
            var query = new MessagesQueryRequest(pageIndex, pageSize)
            {
                UserId = CurrentUser.Id
            };
            var unreadMessages = _messageQueryService.GetUnreadMessages(query);

            return(View("Unreads", unreadMessages));
        }
        public ActionResult UnreadMessages(int pageIndex)
        {
            var query = new MessagesQueryRequest(pageIndex, PageSize)
            {
                UserId = CurrentUser.Id
            };
            var response = _notificationQueryService.GetUnreadMessages(query);

            return(View("UnreadMessages", response));
        }