public async Task <IActionResult> GetArtistAlbumsSongs([FromRoute] int artistId) { try { var artist = await _artistService.GetArtistAlbumsSongsAsync(artistId); if (artist == null) { return(NotFound(new ErrorResponse(ErrorMessages.Artist.DoesNotExist))); } return(Ok(new Response <ArtistAlbumsSongsResponse>(_mapper.Map <ArtistAlbumsSongsResponse>(artist)))); } catch (Exception ex) { return(StatusCode(StatusCodes.Status500InternalServerError, new ErrorResponse(ErrorMessages.Artist.FailedRead))); } }