예제 #1
0
        public IActionResult Category(string category, int page)
        {
            var viewModel = new AllProductViewModel
            {
                Page     = page,
                Category = category,
                Products = logic.GetCategoryProducts(category, page)
            };

            return(View(viewModel));
        }