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)); }
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)); }
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)); }
public ActionResult Index() { ProductBagModel model = _productBagService.GetNextProductsBag(); return(View("PublicCampaign", model)); }