public async Task <MessageWithReply> GetChanelMessages(string messageId) { Models.Message data = await _data.GetChannelMessages(messageId); ReplyMessage replyData = await _data.GetReplyMessages(messageId); var hostData = new HostMessage { CreatedDateTime = data.CreatedDateTime, HostUserId = data.From.User.Id }; IEnumerable <ReplyMessageData> reply = replyData.Value.Select(s => { return(new ReplyMessageData { CreatedDateTime = s.CreatedDateTime, Content = s.Body.Content, UserId = s.From.User.Id }); }).OrderBy(o => o.CreatedDateTime); return(new MessageWithReply { Message = hostData, ReplyMessage = reply }); }