예제 #1
0
 public void AddAlbum(Album album)
 {
     if (album == null)
     {
         throw new ArgumentNullException(nameof(album));
     }
     _context.Add(album);
 }
예제 #2
0
 public void AddArtist(Artist artist)
 {
     if (artist == null)
     {
         throw new  ArgumentNullException(nameof(artist));
     }
     _context.Add(artist);
 }
예제 #3
0
 public void AddGenre(Genre genre)
 {
     if (genre == null)
     {
         throw new ArgumentNullException(nameof(genre));
     }
     _context.Add(genre);
 }