public async Task <ActionResult <List <AlbumResource> > > GetByArtistIdAsync(int id)
        {
            try
            {
                var artist = await _supervisor.GetArtistByIdAsync(id);

                if (artist == null)
                {
                    return(NotFound(new ErrorResource("Artist not found")));
                }

                var albums = await _supervisor.GetAlbumByArtistIdAsync(id);

                var resource = _mapper.Map <IEnumerable <AlbumResource> >(albums);
                return(Ok(resource));
            }
            catch (Exception ex)
            {
                _logger.LogError(ex.Message);
                return(StatusCode(500, ex));
            }
        }