예제 #1
0
        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));
        }
예제 #2
0
        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));
        }
예제 #3
0
        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));
        }