public static IEnumerable <SearchResult> FindTopics(SearchParamInfo sparams, int currentPage, string orderby, ref int rowcount) { ITopic dal = Factory <ITopic> .Create("Topic"); List <SearchResult> topics = new List <SearchResult>(dal.FindTopics(sparams, currentPage, orderby, ref rowcount)); return(topics); }
public static List <SearchResult> GetTopicsBySubject(string topicSubject) { int rowcount = 0; ITopic dal = Factory <ITopic> .Create("Topic"); SearchParamInfo bysubject = new SearchParamInfo { MessageAndSubject = false, SearchFor = topicSubject, PageSize = 10, Match = null }; return(new List <SearchResult>(dal.FindTopics(bysubject, 0, "", ref rowcount))); }