Exemple #1
0
        private void LoadDataCache(IApplicationBuilder app)
        {
            var repo   = new UrlRepository();
            var result = repo.GetAll();

            if (result != null && result.Count > 0)
            {
                var cache = app.ApplicationServices.GetService <IDataCache>();
                cache.SetValue(StrategyConstants.SingleLayerCache, result);
            }
        }
 public ActionResult Index()
 {
     return(View(urlRepository.GetAll()));
 }
Exemple #3
0
 public ActionResult Index()
 {
     Sessao.verificaSessao();
     return(View(urlRepository.GetAll()));
 }