public ClientModel Topic(int? page) { _topicDriver = DependencyResolver.Current.GetService<ITopicDriver>(); int pageNumber = GetPageNumber(page); var pageTopics = _topicDriver.PagingMyClientTopics(pageNumber, DefaultSetting.TopicsPerPage, "CreateTime DESC"); return pageTopics; }
public ActionResult Topic(int?page) { int pageNumber = GetPageNumber(page); var pageTopics = _topicDriver.PagingMyClientTopics(pageNumber, DefaultSetting.TopicsPerPage, "CreateTime DESC"); return(View(pageTopics)); }
public ClientModel Topic(int?page) { _topicDriver = DependencyResolver.Current.GetService <ITopicDriver>(); int pageNumber = GetPageNumber(page); var pageTopics = _topicDriver.PagingMyClientTopics(pageNumber, DefaultSetting.TopicsPerPage, "CreateTime DESC"); return(pageTopics); }