Exemplo n.º 1
0
        private List <Product> LoadItems()
        {
            var myProducts = PersonalizationServices.GetProductsViewed(HccApp);
            var limited    = myProducts.Take(5).ToList();

            return(limited);
        }
Exemplo n.º 2
0
        private void LoadProductGrid()
        {
            List <Product> myProducts = PersonalizationServices.GetProductsViewed(MyPage.MTApp);

            List <Product> n = new List <Product>();
            int            i = 0;

            foreach (Product p in myProducts)
            {
                if (i < WebAppSettings.LastProductsViewedMaxResults)
                {
                    n.Add(p);
                    i += 1;
                }
            }
        }