Exemple #1
0
        public async Task <IEnumerable <BandViewModel> > Get()
        {
            IReadOnlyList <Band> bands = await _bandRepository.GetAllAsync();

            return(bands.Adapt <IEnumerable <BandViewModel> >());
        }
Exemple #2
0
        public async Task <IEnumerable <MusicianViewModel> > Get()
        {
            IReadOnlyList <Musician> musicians = await _musicianRepository.GetAllAsync();

            return(musicians.Adapt <IEnumerable <MusicianViewModel> >());
        }