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()); }
//------------------------------------------------------ // GET: Products public ActionResult IndexProducts() { var products = sp.GetMany(); return(View(products)); }