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