public HomeAdminController(IProductRepository productRepository, IProdCategoryRepository prodCategoryRepository, INewsRepository newsRepository, IOrderRepository orderRepository, IUserRepository userRepository) { this.prodCategoryRepository = prodCategoryRepository; this.productRepository = productRepository; this.newsRepository = newsRepository; this.orderRepository = orderRepository; this.userRepository = userRepository; }
public ProdCategoryService(IProdCategoryRepository ProdCatRepo, IUnitOfWork unitOfWork, IMemoryCache cache) { _prodCatRepo = ProdCatRepo; _unitOfWork = unitOfWork; _cache = cache; }