public ActionResult StokKarti() { CacheFonsiyon cacheFonsiyon = new CacheFonsiyon(); ViewBag.Kategoriler = cacheFonsiyon.KategoriGetir(); ViewBag.OlcuBirimi = cacheFonsiyon.CacheTanimGetir(Enums.CacheKey.OlcuBirimi.ToString()); return(View()); }
protected void Application_Start() { AreaRegistration.RegisterAllAreas(); RouteConfig.RegisterRoutes(RouteTable.Routes); ControllerBuilder.Current.SetControllerFactory(new NinjectControllerFactory()); CacheProvider.Instance = new DefaultCacheProvider(); CacheFonsiyon fonksiyon = new CacheFonsiyon(); fonksiyon.CacheTemizle(); fonksiyon.CacheOlustur(); }