Esempio n. 1
0
 protected override void OnInitialized()
 {
     editContext = new EditContext(Report);
     editContext.OnFieldChanged += HandleFieldChanged;
     speakers    = SpeakerService.GetSpeakers().ToImmutableArray();
     conferences = ConferenceService.GetConferences().ToImmutableArray();
     if (Report.Speakers is { })
Esempio n. 2
0
        public async Task <IActionResult> List()
        {
            Console.WriteLine("GetSpeakers");
            return(await talkCache.GetOrSet(MediaCache.SpeakersKey, () => List()));

            async Task <IActionResult> List()
            {
                SetCurrentNavigationToSpeakerList();
                var speakers = await speakerService.GetSpeakers();

                return(View("List", speakers));
            }
        }