public CommentWork(IUploadFileWork uploadWork, IUploadFileCategoryWork uploadCategoryWork,
                           IBannedWordWork bannedWordWork, SettingWork settingWork, ThreadWork threadWork, IRepository <ContentTopic> topicRepository)
        {
            _topicRepository    = topicRepository;
            _uploadWork         = uploadWork;
            _uploadCategoryWork = uploadCategoryWork;
            _bannedWordWork     = bannedWordWork;
            _settingWork        = settingWork;
            _threadWork         = threadWork;

            _defaultSetting = _settingWork.GetDefaultSetting();
        }
Exemple #2
0
        public TopicWork(ICommentWork commentWork, IBannedWordWork bannedWordWork, IThreadWork threadWork, SettingWork settingWork)
        {
            _commentWork    = commentWork;
            _bannedWordWork = bannedWordWork;
            _threadWork     = threadWork;
            _settingWork    = settingWork;

            _defaultSetting = _settingWork.GetDefaultSetting();
        }