Exemple #1
0
 public TracksController(ITracksDao tracksDao)
 {
     if (tracksDao == null)
     {
         throw new ArgumentNullException("tracksDao");
     }
     _tracksDao = tracksDao;
 }
Exemple #2
0
 public PlaylistTracksController(IPlaylistsDao playlistsDao, ITracksDao tracksDao)
 {
     if (playlistsDao == null)
     {
         throw new ArgumentNullException("playlistsDao");
     }
     if (tracksDao == null)
     {
         throw new ArgumentNullException("tracksDao");
     }
     _playlistsDao = playlistsDao;
     _tracksDao    = tracksDao;
 }