public ProductController(IProductRepository productRepository, IProductTypeRepository productTypeRepository, ISpecialTagRepository specialTagRepository, HostingEnvironment hostingEnvironment) { _productRepository = productRepository; _productTypeRepository = productTypeRepository; _specialTagRepository = specialTagRepository; _hostingEnvironment = hostingEnvironment; ProductViewModel = new ProductViewModel() { ProductTypes = _productTypeRepository.GetAllWithProductTypes(), SpecialTags = _specialTagRepository.GetAllWithSpecialTags(), Product = new Product() }; }