Пример #1
0
        public BoardController(
            ForumServices forumServices,
            SearchServices searchServices,
            ThreadServices threadServices,
            PostServices postServices,
            PollServices pollServices,
            GlobalServices globalServices,
            IRepository<OnlineUser> onlineUserRepository,
            IRepository<OnlineGuest> onlineGuestRepository,
            IRepository<User> userRepository,
            UserServices usersServices,
            RoleServices roleServices,
            MessageServices messageServices,
            PermissionServices permissionServices,
            FileServices fileServices)
        {
            _forumServices = forumServices;
            _searchServices = searchServices;
            _threadServices = threadServices;
            _postServices = postServices;
            _pollServices = pollServices;
            _onlineUserRepository = onlineUserRepository;
            _onlineGuestRepository = onlineGuestRepository;
            _userRepository = userRepository;
            _userServices = usersServices;
            _roleServices = roleServices;
            _messageServices = messageServices;
            _permissionServices = permissionServices;
            _fileServices = fileServices;

            SetTopBreadCrumb("Board");
        }
Пример #2
0
 public PermissionServices(
     IRepository<Thread> threads,
     IRepository<User> users,
     IRepository<Forum> forums,
     IRepository<ForumPermission> forumPermissions,
     ThreadServices threadServices,
     RoleServices rolesService,
     IUnitOfWork unitOfWork)
     : base(unitOfWork)
 {
     _threadRepository = threads;
     _userRepository = users;
     _forumRepository = forums;
     _forumPermissionRepository = forumPermissions;
     _threadServices = threadServices;
     _roleServices = rolesService;
 }
 public PermissionServices(
     IRepository <Thread> threads,
     IRepository <User> users,
     IRepository <Forum> forums,
     IRepository <ForumPermission> forumPermissions,
     ThreadServices threadServices,
     RoleServices rolesService,
     IUnitOfWork unitOfWork)
     : base(unitOfWork)
 {
     _threadRepository          = threads;
     _userRepository            = users;
     _forumRepository           = forums;
     _forumPermissionRepository = forumPermissions;
     _threadServices            = threadServices;
     _roleServices = rolesService;
 }
Пример #4
0
 public ForumServices(
     IRepository<Thread> threads,
     IRepository<Category> categories,
     IRepository<Post> posts,
     IRepository<Forum> forums,
     ThreadServices threadServices,
     IRepository<ThreadViewStamp> threadViewStampRepository,
     PermissionServices permissionServices,
     IRepository<User> userRepository,
     IUnitOfWork unitOfWork)
     : base(unitOfWork)
 {
     _threadRepository = threads;
     _categoryRepository = categories;
     _postRepository = posts;
     _forumRepository = forums;
     _threadServices = threadServices;
     _threadViewStampRepository = threadViewStampRepository;
     _permissionServices = permissionServices;
     _userRepository = userRepository;
 }
Пример #5
0
 public ForumServices(
     IRepository <Thread> threads,
     IRepository <Category> categories,
     IRepository <Post> posts,
     IRepository <Forum> forums,
     ThreadServices threadServices,
     IRepository <ThreadViewStamp> threadViewStampRepository,
     PermissionServices permissionServices,
     IRepository <User> userRepository,
     IUnitOfWork unitOfWork)
     : base(unitOfWork)
 {
     _threadRepository          = threads;
     _categoryRepository        = categories;
     _postRepository            = posts;
     _forumRepository           = forums;
     _threadServices            = threadServices;
     _threadViewStampRepository = threadViewStampRepository;
     _permissionServices        = permissionServices;
     _userRepository            = userRepository;
 }
Пример #6
0
 public PostController(
     IRepository<Smiley> smileyRepository, 
     ForumServices forumServices,
     PostServices postServices,
     ThreadServices threadServices,
     FileServices fileServices,
     PollServices pollServices,
     EmailServices emailServices,
     PermissionServices permissionServices,
     ParseServices parseServices)
 {
     _smileyRepository = smileyRepository;
     _forumServices = forumServices;
     _postServices = postServices;
     _threadServices = threadServices;
     _fileServices = fileServices;
     _pollServices = pollServices;
     _emailServices = emailServices;
     _permissionServices = permissionServices;
     _parseServices = parseServices;
 }