Пример #1
0
        public AlbumCollectionController(IAlbumRepo albumRepo, IMapper mapper)
        {
            _albumRepo = albumRepo ??
                         throw new ArgumentNullException(nameof(albumRepo));

            _mapper = mapper ??
                      throw new ArgumentNullException(nameof(mapper));
        }
Пример #2
0
 public HomeController(IBookRepo bookRepo, IAlbumRepo albumRepo, IGameRepo gameRepo)
 {
     br = bookRepo;
     ar = albumRepo;
     gr = gameRepo;
 }
 public UserService(AppDbContext ctx, IUserRepo userRepo, IPhotoRepo photoRepo, IAlbumRepo albumRepo) : base(ctx)
 {
     _userRepo  = userRepo;
     _photoRepo = photoRepo;
     _albumRepo = albumRepo;
 }
Пример #4
0
 public AlbumController(IAlbumRepo repository, IMapper mapper, ILog logger)
 {
     this._repository = repository;
     this._mapper     = mapper;
     this._logger     = logger;
 }
 public AlbumService(AppDbContext ctx, IAlbumRepo albumRepo, IPhotoRepo photoRepo) : base(ctx)
 {
     _albumRepo = albumRepo;
     _photoRepo = photoRepo;
 }
Пример #6
0
 public SyncAlbumController(IAlbumRepo albumRepo)
 {
     _albumRepo = albumRepo ??
                  throw new ArgumentNullException(nameof(albumRepo));
 }