Пример #1
0
 public PostService(IUnitOfWork unitOfWork,
                    IMappingEngine mappingEngine,
                    ICategoryService categoryService,
                    IApplicationUserManager applicationUserManagerService,
                    ICommentService commentService,
                    IPostsReactService postReactService)
 {
     _unitOfWork             = unitOfWork;
     _post                   = _unitOfWork.Set <Post>();
     _mappingEngine          = mappingEngine;
     _allCategories          = categoryService.GetAllCategoriesSelectListItem();
     _allCategoriesForSearch = categoryService.GetAllCategorySelectListItemForSearch();
     _allCreatorsForSearch   = applicationUserManagerService.GetAllUsersSelectListItemForSearch();
     _commentService         = commentService;
     _postReactService       = postReactService;
 }
Пример #2
0
 public DashboardService(
     IApplicationUserManager userService,
     ICommentService commentService,
     IPostsReactService postReactService,
     IPostService postService,
     IWebViewService webViewService,
     IWebPostViewService webPostViewService,
     ICategoryService categoryService,
     IUnitOfWork unitOfWork
     )
 {
     _userService        = userService;
     _commentService     = commentService;
     _postReactService   = postReactService;
     _postService        = postService;
     _categoryService    = categoryService;
     _webViewService     = webViewService;
     _webPostViewService = webPostViewService;
     _webView            = unitOfWork.Set <DomainClasses.Entities.WebView>();
 }
Пример #3
0
 public PostReactController(IPostsReactService postReactService)
 {
     _postReactService = postReactService;
 }