public async Task <IActionResult> Index() { var torneo = await _cache.GetOrCreateAsync("torneoSelected2", async entry => { entry.SlidingExpiration = TimeSpan.FromHours(24); var torneoId = 1; var torneoCompleto = await _torneoNegocio.GetById(torneoId); return(torneoCompleto); }); ViewBag.TorneoSelected = torneo; ViewBag.LastUpdated = DateTime.Now; return(View(await _partidoNegocio.PartidosBuscar(null, null, torneo.TorneoId, null))); }