Example #1
0
        public IActionResult Get(int id)
        {
            var artist = artistsService.GetArtistById(id);

            if (artist == null)
            {
                return(NotFound());
            }
            else
            {
                return(Ok(artist));
            }
        }
Example #2
0
        public IActionResult Edit(int id)
        {
            var artist = artistsService.GetArtistById(id);

            return(View(artist));
        }