コード例 #1
0
 public IActionResult AddNewArtist(Artist artistToAdd)
 {
     _repo.AddArtist(artistToAdd);
     return(Created($"/api/artist/{ artistToAdd.ArtistId }", artistToAdd));
 }
コード例 #2
0
 public ActionResult AddArtist(Artist artist)
 {
     _artistRepository.AddArtist(artist);
     return(Ok());
 }