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())); }
public ActionResult Index() { Sessao.verificaSessao(); return(View(urlRepository.GetAll())); }