Exemple #1
0
        public List <Product> GetProducts(FormDataCollection queryStrings)
        {
            var storeId = GlobalSettings.UmbracoSettings.NopStoreId;
            var isGetProductLimitToStore = GlobalSettings.UmbracoSettings.GetProductLimitToStore;
            var products = storeId != 0 && isGetProductLimitToStore?_nopService.GetAllProducts().Where(product => product.StoreIds.Contains(storeId)).ToList() : _nopService.GetAllProducts();

            return(products);
        }
        public List <Product> GetProducts(FormDataCollection queryStrings)
        {
            var products = _nopService.GetAllProducts();

            return(products);
        }