Esempio n. 1
0
        public async Task <IActionResult> Index(string speakerName)
        {
            Console.WriteLine("GetTalksForSpeaker " + speakerName);
            return(await talkCache.GetOrSet(speakerName, () => GetViewForSpeaker()));

            async Task <IActionResult> GetViewForSpeaker()
            {
                SetCurrentNavigation(speakerName);
                var talksByUser = await speakerService.GetTalksBySpeaker(speakerName);

                return(View(talksByUser));
            }
        }