public ActionResult Index() { var products = pp.GetAll().OrderByDescending(x => x.CreatedOn).Take(4); return(View(products.ToList())); }
// GET: Product public ActionResult Index() { return(View(_pp.GetAll())); }