Esempio n. 1
0
 public ClientModel Comment(int? page)
 {
     _commentDriver  = DependencyResolver.Current.GetService<ICommentDriver>();
     int pageNumber = GetPageNumber(page);
     var pageComments = _commentDriver.PagingMyClientComments(pageNumber, DefaultSetting.CommentsPerPage, "CreateTime DESC");
     return pageComments;
 }
Esempio n. 2
0
 public TopicController(ITopicDriver topicDriver, ICommentDriver commentDriver,
                        ITagDriver tagDirver, IThreadDriver threadDriver)
 {
     _topicDriver   = topicDriver;
     _commentDriver = commentDriver;
     _tagDriver     = tagDirver;
     _threadDriver  = threadDriver;
 }
Esempio n. 3
0
        public ClientModel Comment(int?page)
        {
            _commentDriver = DependencyResolver.Current.GetService <ICommentDriver>();
            int pageNumber   = GetPageNumber(page);
            var pageComments = _commentDriver.PagingMyClientComments(pageNumber, DefaultSetting.CommentsPerPage, "CreateTime DESC");

            return(pageComments);
        }
Esempio n. 4
0
 public TopicController(ITopicDriver topicDriver, ICommentDriver commentDriver, 
     ITagDriver tagDirver,  IThreadDriver threadDriver)
 {
     _topicDriver = topicDriver;
     _commentDriver = commentDriver;
     _tagDriver = tagDirver;
     _threadDriver = threadDriver;
 }
Esempio n. 5
0
 public TopicDriver(ITopicWork contentTopicWork, ICommentWork commentWork,
                    ICommentDriver commentDriver, ITagWork tagWork, IThreadWork threadWork)
     : base(contentTopicWork)
 {
     _topicWork     = contentTopicWork;
     _commentWork   = commentWork;
     _commentDriver = commentDriver;
     _tagWork       = tagWork;
     _threadWork    = threadWork;
 }
 public CommentController()
 {
     _commentDriver = DependencyResolver.Current.GetService <ICommentDriver>();
 }
 public CommentController()
 {
     _commentDriver = DependencyResolver.Current.GetService<ICommentDriver>();
 }
Esempio n. 8
0
 public UserController(ITopicDriver topicDriver, ICommentDriver commentDriver)
 {
     _topicDriver   = topicDriver;
     _commentDriver = commentDriver;
 }
Esempio n. 9
0
 public UserController(ITopicDriver topicDriver, ICommentDriver commentDriver)
 {
     _topicDriver = topicDriver;
     _commentDriver = commentDriver;
 }