// GET: Products public ActionResult Index() { #region get products of db - removed....instead insert next region ProductsRepository pr = new ProductsRepository(); //var products = pr.GetProducts(); //gets products from db #endregion #region instead of getting products from DB, to make your application faster , you load them from the cache CacheRepository cr = new CacheRepository(); var products = cr.GetProductsFromCache(); #endregion return(View("Index", products)); }