public JsonResult Filters([FromRoute] string id) { ProductListInputModel query = new ProductListInputModel(); query.CategoryIds = new List <string>() { id }; var allFilters = _productManager.FindAllFilters(_sessionModel.CurrentUser, query); return(Json(allFilters)); }
public IActionResult Search(string q) { ProductListInputModel query = new ProductListInputModel(); query.PageSize = 20; query.PageNumber = 1; query.Query = q; var allProducts = _productManager.FindByCategory(_sessionModel.CurrentUser, query); return(View(allProducts)); }
public IActionResult AjaxList([FromRoute] string id, int pageNumber) { ProductListInputModel query = new ProductListInputModel(); query.CategoryIds = new List <string>() { id }; query.PageNumber = pageNumber; var allProducts = _productManager.FindByCategory(_sessionModel.CurrentUser, query); allProducts.CategoryId = id; return(View(allProducts)); }