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