예제 #1
0
        public async Task <BasicOutput <ChatRoom> > GetChatRoom(string chatRoomId)
        {
            var output = new BasicOutput <ChatRoom>();

            var chatRoom = await _chatRoomRepository.GetChatRoomById(Guid.Parse(chatRoomId), false);

            chatRoom.Conversation = _chatRoomRepository.GetChatRoomConversation(chatRoom.Id, 50).ToList();
            output.SetOutput(chatRoom);

            return(output);
        }