コード例 #1
0
 public CategoryService(ICategoryRepository categoryRepository, ICategoriesNewsRepository categoriesNewsRepository, ICategoryTranslationRepository categoryTranslationRepository,
                        IResourceService <SharedResource> sharedResourceService, IResourceService <GhmWebsiteResource> resourceService,
                        IMenuItemRepository menuItemRepository)
 {
     _categoryRepository            = categoryRepository;
     _categoriesNewsRepository      = categoriesNewsRepository;
     _categoryTranslationRepository = categoryTranslationRepository;
     _sharedResourceService         = sharedResourceService;
     _resourceService    = resourceService;
     _menuItemRepository = menuItemRepository;
 }
コード例 #2
0
 public NewsService(INewsRepository newsRepository,
                    INewsTranslationRepository newsTranslationRepository,
                    ICategoriesNewsRepository categoriesNewsRepository,
                    IMenuItemRepository menuItemRepository,
                    ICategoryRepository categoryRepository,
                    ICategoryTranslationRepository categoryTranslationRepository,
                    IResourceService <SharedResource> sharedResourceService,
                    IResourceService <GhmWebsiteResource> websiteResourceService,
                    IConfiguration configuration
                    )
 {
     _newsRepository                = newsRepository;
     _newsTranslationRepository     = newsTranslationRepository;
     _categoriesNewsRepository      = categoriesNewsRepository;
     _menuItemRepository            = menuItemRepository;
     _categoryRepository            = categoryRepository;
     _sharedResourceService         = sharedResourceService;
     _websiteResourceService        = websiteResourceService;
     _configuration                 = configuration;
     _categoryTranslationRepository = categoryTranslationRepository;
 }