public List <Message> GetListMessage(string topicId) { int tId = Int32.Parse(topicId); var list = _objDaoTopicReply.GetTopicReplyTop10(tId); return(list); }
/// <summary> /// Uses the method of retrieving the last ten messages in db /// </summary> /// <param name="topicId">topic id</param> /// <returns>message list</returns> public static List <Message> GetTopicReplyTop10(int topicId) { _objDaoTopicReply = DAOTopicReply.getInstance(); return(_objDaoTopicReply.GetTopicReplyTop10(topicId)); }