public async Task <ActionResult <IEnumerable <ArtistDTO> > > GetAllArtist()
        {
            var artists = await _artistService.GetAllArtist();

            var artistResource = _mapper.Map <IEnumerable <Artist>, IEnumerable <ArtistDTO> >(artists);

            return(Ok(artistResource));
        }
Ejemplo n.º 2
0
        public async Task <IEnumerable <ArtistViewModel> > Get(CancellationToken ct)
        {
            var allArtist = await _artistService.GetAllArtist(ct);

            return(allArtist);
        }