public CategoryController(ICategoryPageService categoryPageService, IIndexPageService indexPageService, ICategoryService categoryService, IWebHostEnvironment hostingEnvironment) { _categoryPageService = categoryPageService; _indexPageService = indexPageService; _categoryService = categoryService; _hostingEnvironment = hostingEnvironment; }
public ProductController(IProductPageService productPageService, IIndexPageService indexPageService, IWebHostEnvironment hostingEnvironment, ICategoryPageService categoryPageService) { _productPageService = productPageService; _indexPageService = indexPageService; _hostingEnvironment = hostingEnvironment; _categoryPageService = categoryPageService; }
public HomeController(IHomePageService homePageService, ICategoryPageService categoryPageService, ISearchService searchService) { _homePageService = homePageService ?? throw new ArgumentNullException(nameof(homePageService)); _categoryPageService = categoryPageService ?? throw new ArgumentNullException(nameof(categoryPageService)); _searchService = searchService ?? throw new ArgumentNullException(nameof(categoryPageService)); }
public IndexModel(ICategoryPageService categoryPageService) { _categoryPageService = categoryPageService ?? throw new ArgumentNullException(nameof(categoryPageService)); }