Esempio n. 1
0
        public ActionResult Index()
        {
            var speakers = speakerRepository.GetAllSpeakerProfiles()
                           .Select(CreateSpeakerModel)
                           .OrderBy(s => s.UserName).ToList();

            return(View(speakers));
        }
        private Dictionary <string, SpeakerProfile> GetSpeakerIdMap()
        {
            var speakerProfiles = speakerRepository.GetAllSpeakerProfiles();

            return(speakerProfiles.ToDictionary(p => p.UserName, p => p));
        }