Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 public ProdCategoryService(IProdCategoryRepository ProdCatRepo, IUnitOfWork unitOfWork, IMemoryCache cache)
 {
     _prodCatRepo = ProdCatRepo;
     _unitOfWork  = unitOfWork;
     _cache       = cache;
 }