Esempio n. 1
0
        public ActionResult GetProductAllCategory()
        {
            ProductCategoryService service = new ProductCategoryService();
            ProductCategoryDa      da      = new ProductCategoryDa();
            int maxItem = 10;

            ViewBag.CategoryList = da.GetListCategory(maxItem);
            IEnumerable <Product> model = service.GetListProductAllCategory();

            return(View(model));
        }