Esempio n. 1
0
        public IActionResult GetHistory([FromBody] ChatUser usr)
        {
            ChatRoom     room        = new ChatRoom();
            IParticipant participant = room.GetParticipant(usr.Name);

            if (participant != null)
            {
                return(Json(participant.GetChatHistory()));
            }
            else
            {
                return(Json(""));
            }
        }