Esempio n. 1
0
 public CartController(IProductsRespository repo)
 {
     repository = repo;
 }
 public AdminController(IProductsRespository productsRespository)
 {
     respository = productsRespository;
 }
 public NavController(IProductsRespository productsRespository)
 {
     respository = productsRespository;
 }
Esempio n. 4
0
 public ProductController(IProductsRespository productRepository)
 {
     this.repository = productRepository;
 }
Esempio n. 5
0
 public CartController(IProductsRespository productsRespository, IOrderProcessor proc)
 {
     respository    = productsRespository;
     orderProcessor = proc;
 }
Esempio n. 6
0
        public int PageSize = 6;                //一页可以容纳多少条记录

        public AdminController(IProductsRespository repo)
        {
            repository = repo;
        }