Ejemplo n.º 1
0
        public ActionResult LoadProductsByCategory(string categoryId, string brand, int?page)
        {
            var entityId = Parse(categoryId);

            ProductBagModel products = _productService.GetProducts(
                new CategoryCommandDescriptor {
                EnityId = entityId, Page = page ?? 0, PageSize = 12
            });

            return(PartialView("PublicSite/ProductRepeater", products));
        }