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); }
public async Task <IActionResult> GetAsync([FromQuery] BasicSearch artistSearch) { return(Ok(await _artistsService.GetAsync(artistSearch))); }