public ActionResult ProductFindByFilter() { VmProductFind model = (VmProductFind)TempData["data"]; //VmGoodFindByFilter model = new VmGoodFindByFilter(goodService, photoService, data); var products = productPriceService.FindBy(model.Predicate); if (model.CurrentPage > 0) { model.paging.CurrentPage = model.CurrentPage; } model.products = products; return(PartialView(model)); }
public ActionResult LoadData(VmProductFind data) { TempData["data"] = data; return(Json("OK")); }
public ActionResult Index(int id = 1) { VmProductFind model = new VmProductFind(id, subCategoryService, manufacturerService, tasteCategoryService, categoryService); return(View(model)); }