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