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; }
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; }