コード例 #1
0
        public IActionResult GetArtist(int id)
        {
            GetArtistResponse getArtistResponse;

            try
            {
                getArtistResponse = _musicService.FindArtist(id);
            }
            catch
            {
                return(Problem());
            }

            if (getArtistResponse == null)
            {
                return(NotFound());
            }

            return(Ok(getArtistResponse));
        }