Ejemplo n.º 1
0
        private async void LoadSpeakers(object sender, RoutedEventArgs e)
        {
            _loadingDone = false;
            var speakers = await ConferenceService.GetSpeakers();

            var speakerViewModels = from speaker in speakers
                                    select new SpeakerViewModel(speaker);

            lstSpeakers.ItemsSource = speakerViewModels.ToArray();
            _loadingDone            = true;
        }
Ejemplo n.º 2
0
 static void Main(string[] args)
 {
     var speakers = ConferenceService.GetSpeakers().Result;
 }
Ejemplo n.º 3
0
        public async Task <ActionResult> Index()
        {
            var speakers = await ConferenceService.GetSpeakers();

            return(View(speakers));
        }