コード例 #1
0
 public BlogPostsController(IBlogPostService blogPostService, IBlogCategoryService blogCategoryService, ITagService tagService, IBlogPostCategoryService blogPostCategoryService, IBlogPostTagService blogPostTagService, IBlogPostMediaService blogPostMediaService)
 {
     _blogPostService         = blogPostService ?? throw new ArgumentNullException(nameof(blogPostService));
     _blogCategoryService     = blogCategoryService ?? throw new ArgumentNullException(nameof(blogCategoryService));
     _tagService              = tagService ?? throw new ArgumentNullException(nameof(tagService));
     _blogPostCategoryService = blogPostCategoryService ?? throw new ArgumentNullException(nameof(blogPostCategoryService));
     _blogPostTagService      = blogPostTagService ?? throw new ArgumentNullException(nameof(blogPostTagService));
     _blogPostMediaService    = blogPostMediaService ?? throw new ArgumentNullException(nameof(blogPostMediaService));
 }
コード例 #2
0
 public BlogController(IBlogService blogService, IBlogPostTagService blogPostTagService, ICategoryService categoryService, ILanguageService languageService, ILocalizationService localizationService, ILocalizedEntityService localizedEntityService, ICustomerActivityService customerActivityService, IPermissionService permissionService, IWorkContext workContext, IDateTimeHelper dateTimeHelper, ICacheManager cacheManager)
 {
     _blogService             = blogService;
     _blogPostTagService      = blogPostTagService;
     _categoryService         = categoryService;
     _languageService         = languageService;
     _localizationService     = localizationService;
     _localizedEntityService  = localizedEntityService;
     _customerActivityService = customerActivityService;
     _permissionService       = permissionService;
     _workContext             = workContext;
     _dateTimeHelper          = dateTimeHelper;
     _cacheManager            = cacheManager;
 }