public ActionResult Index()
 {
     var total = 0;
     //查找15个产品和4条新闻
     var product = new ProductService().GetList(1, 15, out total);
     var news = new NewsService().GetList(1, 4, out total);
     var model = Tuple.Create<List<Product>, List<News>>(product, news);
     return View(model);
 }
 public ProductController()
 {
     pService = new ProductService();
 }
 public ProductController()
 {
     categoryService = new CategoryService();
     productService = new ProductService();
 }