Beispiel #1
0
 public AlbumsController(ILogger logger, IAlbumsRepository albumsRepository, IPhotosRepository photosRepository)
 {
     _logger           = (logger?.ForContext <AlbumsController>()).ThrowIfNull(nameof(logger));
     _albumsRepository = albumsRepository.ThrowIfNull(nameof(albumsRepository));
     _photosRepository = photosRepository.ThrowIfNull(nameof(photosRepository));
 }
Beispiel #2
0
 public UsersController(ILogger logger, IAlbumsRepository albumsRepository)
 {
     _logger           = (logger?.ForContext <UsersController>()).ThrowIfNull(nameof(logger));
     _albumsRepository = albumsRepository.ThrowIfNull(nameof(albumsRepository));
 }