public IActionResult MarkRead(int id)
        {
            var userMessage = _userMessageRepository.GetById(id);

            userMessage.Unread = false;
            _userMessageRepository.Update(userMessage);

            return(NoContent());
        }
        public bool ToggleBubble(Guid userId, Message message)
        {
            var userMessage = _userMessageRepository.FindAll().FirstOrDefault(x => x.User.Id == userId && x.Message.Id == message.Id);

            if (userMessage != null)
            {
                userMessage.UpdateSortingDateOnNewComment = !userMessage.UpdateSortingDateOnNewComment;
                _userMessageRepository.Update(userMessage);
                return(userMessage.UpdateSortingDateOnNewComment);
            }

            return(false);
        }