/// <summary> /// Uses the method of retrieval the last ten topics from the rubric in the db /// </summary> /// <param name="rubricId">id of the rubric</param> /// <returns>topic list</returns> public static List <Topic> GetLastTopicTop10ById(int rubricId) { _objDaoTopic = DAOTopic.getInstance(); return(_objDaoTopic.GetLastTopicTop10ById(rubricId)); }
public List <Topic> GetListTopic(string rubricId) { int rId = Int32.Parse(rubricId); return(_objDaoTopic.GetLastTopicTop10ById(rId)); }