Пример #1
0
        public async Task <bool> GetArtistAsync(int id, bool links = false)
        {
            var artistOutput = await artistsService.GetAsync(id);

            if (artistOutput is not null)
            {
                Artist = mapper.Map <ArtistModel>(artistOutput);
                return(true);
            }

            return(false);
        }
Пример #2
0
 public async Task <IActionResult> GetAsync([FromQuery] BasicSearch artistSearch)
 {
     return(Ok(await _artistsService.GetAsync(artistSearch)));
 }