Пример #1
0
        public ProductService(AppDbContext dbContext,
                              ILocalizedEntityService localizedEntityService,
                              IProductDownloadsLogService productDownloadsLogService,
                              IUserLikesService userLikesService,
                              IUserWishlistService userWishlistService,
                              IUserGroupsService userGroupsService,
                              IPostCategoriesService categoriesService,
                              IProductDiscountsForUserGroupsService productDiscountsForUserGroupsService,
                              IProductCheckoutAttributesService productCheckoutAttributesService,
                              ILocalizationService localizationService,
                              IUsersService usersService,
                              IEventPublisher eventPublisher) : base(dbContext,
                                                                     localizedEntityService,
                                                                     userLikesService,
                                                                     userWishlistService,
                                                                     categoriesService,
                                                                     eventPublisher)
        {
            _dbContext = dbContext;
            _productDownloadsLogService           = productDownloadsLogService;
            _userGroupsService                    = userGroupsService;
            _categoriesService                    = categoriesService;
            _productDiscountsForUserGroupsService = productDiscountsForUserGroupsService;
            _productCheckoutAttributesService     = productCheckoutAttributesService;
            _localizationService                  = localizationService;
            _usersService = usersService;

            _cacheKey = nameof(TblProducts);
        }
Пример #2
0
 public ProductController(
     IProductService productService,
     IProductModelFactory productModelFactory,
     IPostCategoriesService categoriesService)
 {
     _productService      = productService;
     _productModelFactory = productModelFactory;
     _categoriesService   = categoriesService;
 }
Пример #3
0
 public BlogController(
     IBlogPostService blogPostService,
     IPostModelFactory postModelFactory,
     IPostCategoriesService categoriesService)
 {
     _blogPostService   = blogPostService;
     _postModelFactory  = postModelFactory;
     _categoriesService = categoriesService;
 }
Пример #4
0
 public ForumController(
     IPostsService postsService,
     IPostCategoriesService categoriesService,
     ICommentsService commentsService,
     UserManager <ApplicationUser> userManager)
 {
     this.postsService      = postsService;
     this.categoriesService = categoriesService;
     this.commentsService   = commentsService;
     this.userManager       = userManager;
 }
 public ManagePostCategoriesController(IPostCategoriesService postCategoriesService,
                                       IPostCategoriesModelFactory postCategoriesModelFactory,
                                       ILocalizationService localizationService,
                                       INavBarService navBarService,
                                       ILocalizedEntityService localizedEntityService)
 {
     _postCategoriesService      = postCategoriesService;
     _postCategoriesModelFactory = postCategoriesModelFactory;
     _localizationService        = localizationService;
     _navBarService          = navBarService;
     _localizedEntityService = localizedEntityService;
 }
Пример #6
0
 public BlogPostService(AppDbContext dbContext,
                        ILocalizedEntityService localizedEntityService,
                        IUserLikesService userLikesService,
                        IUserWishlistService userWishlistService,
                        IPostCategoriesService categoriesService,
                        IEventPublisher eventPublisher) : base(dbContext,
                                                               localizedEntityService,
                                                               userLikesService,
                                                               userWishlistService,
                                                               categoriesService,
                                                               eventPublisher)
 {
 }
Пример #7
0
 public SiteMapController(ISitemapGenerator sitemapGenerator,
                          IPostService <TblPosts> postService,
                          IPostCategoriesService categoriesService,
                          IPostTagsService tagsService,
                          IPagesService pagesService,
                          ILanguagesService languagesService)
 {
     _sitemapGenerator  = sitemapGenerator;
     _postService       = postService;
     _categoriesService = categoriesService;
     _tagsService       = tagsService;
     _pagesService      = pagesService;
     _languagesService  = languagesService;
 }
Пример #8
0
 public PostsController(
     IPostsService postsService, 
     ICommentsService commentsService, 
     IRegionsService regionsService, 
     IPostCategoriesService postCategoriesService, 
     IPetsService petsService)
     : base()
 {
     this.postsService = postsService;
     this.commentsService = commentsService;
     this.regionsService = regionsService;
     this.postCategoriesService = postCategoriesService;
     this.petsService = petsService;
 }
Пример #9
0
        public PostService(AppDbContext dbContext,
                           ILocalizedEntityService localizedEntityService,
                           IUserLikesService userLikesService,
                           IUserWishlistService userWishlistService,
                           IPostCategoriesService categoriesService,
                           IEventPublisher eventPublisher)
        {
            _dbContext = dbContext;
            _localizedEntityService = localizedEntityService;
            _userLikesService       = userLikesService;
            _userWishlistService    = userWishlistService;
            _categoriesService      = categoriesService;
            _eventPublisher         = eventPublisher;

            _cacheKey = typeof(T).Name;
        }
Пример #10
0
 public PostsService(
     IDbRepository<Post> postsRepo,
     IDbRepository<Image> imagesRepo,
     IDbRepository<Comment> commentsRepo,
     IRegionsService regionsService, 
     IPostCategoriesService postCategoriesService, 
     IPetsService petsService, 
     IUsersService usersService)
 {
     this.postsRepo = postsRepo;
     this.imagesRepo = imagesRepo;
     this.commentsRepo = commentsRepo;
     this.regionsService = regionsService;
     this.postCategoriesService = postCategoriesService;
     this.petsService = petsService;
     this.usersService = usersService;
 }