示例#1
0
        public async Task <IActionResult> Index()
        {
            var countOfProductsToShow = _config.GetCountOfProductsToShow();

            var prods = await _productsService.GetProductsWithRelatedAsync <ProductList>(new[] { "Supplier", "Category" }, countOfProductsToShow);

            return(View(prods));
        }