Пример #1
0
        public PartialViewResult Products()
        {
            serviceProduct ip = new serviceProduct();

            List <Product> lp = new List <Product>();

            lp = ip.GetMany().Reverse().Where(a => a.qteprod > 0).Take(6).ToList();

            ViewData["list"] = lp;
            return(PartialView());
        }
Пример #2
0
        //------------------------------------------------------
        // GET: Products
        public ActionResult IndexProducts()
        {
            var products = sp.GetMany();

            return(View(products));
        }