Пример #1
0
        public async Task <ActionResult <Chatroom> > AddMember([FromBody] Chat_AddMembers add)
        {
            Chat_MemberInfo chatroom = new Chat_MemberInfo();

            Task <Chat_MemberInfo> task = _ChatService.AddMembers(add);

            chatroom = await task;

            if (chatroom == null)
            {
                return(BadRequest());
            }
            return(Ok(chatroom));
        }