Exemplo n.º 1
0
        public static object GetNewMessages(int chatRoomId, int recieverId, int senderId)
        {
            var newMessages = MessageDAO.GetNewChatRoomMessages(chatRoomId, senderId);

            MessageDAO.SetMessageSeenStatus(chatRoomId, senderId);
            return(new { result = newMessages });
        }