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() }; }
public SpecialTagController(ISpecialTagRepository context) { _context = context; }