public async Task <ActionResult> DeleteAsync(int id)
        {
            //try
            //{
            if (await _supervisor.GetAlbumByIdAsync(id) == null)
            {
                return(NotFound(new ErrorResource("Album not found")));
            }

            var result = await _supervisor.DeleteAlbumAsync(id);

            if (!result.Success)
            {
                return(BadRequest(new ErrorResource(result.Message)));
            }

            var albumResource = _mapper.Map <Album, AlbumResource>(result.Album);

            return(Ok(albumResource));

            //}
            //catch (Exception ex)
            //{
            //    _logger.LogError(ex.Message);
            //    return StatusCode(500, ex);
            //}
        }