Torna al Thread

[ChildActionOnly] public ActionResult HomepageProducts(int? productThumbPictureSize) { var products = _productService.GetAllProductsDisplayedOnHomePage(); //ACL and store mapping products = products.Where(p => _aclService.Authorize(p) && _storeMappingService.Authorize(p)).ToList(); if (products.Count == 0) return Content(""); var model = PrepareProductOverviewModels(products, true, true, productThumbPictureSize).ToList(); return PartialView(model); }
Copyright © dotNetHell.it 2002-2025
Running on Windows Server 2008 R2 Standard, SQL Server 2012 & ASP.NET 3.5