示例#1
0
        public ActionResult AppendSearchProduct(string searchKeyword, int?page)
        {
            ProductBagModel products = _productService.GetProducts(
                new SearchCommandDescriptor {
                KeyWord = searchKeyword, Page = page ?? 0, PageSize = 12
            });

            return(PartialView("PublicSite/ProductRepeater", products));
        }
示例#2
0
        public ActionResult LoadProductsByBrand(string categoryId, string brand, int?page)
        {
            var entityId = Parse(categoryId);

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

            return(PartialView("PublicSite/ProductRepeater", products));
        }
示例#3
0
        public ActionResult SearchProduct(string searchKeyword, int?page)
        {
            ProductBagModel products = _productService.GetProducts(
                new SearchCommandDescriptor {
                KeyWord = searchKeyword, Page = page ?? 0, PageSize = 12
            });

            ViewBag.SearchKeyword = searchKeyword;

            return(View("SearchProduct", products));
        }
示例#4
0
        public ActionResult Index()
        {
            ProductBagModel model = _productBagService.GetNextProductsBag();

            return(View("PublicCampaign", model));
        }