Exemplo n.º 1
0
 public AlbumService(IRepository <Album> albumRepository,
                     IFilePathHelper filePathHelper,
                     IFileService fileService,
                     IMapper mapper)
 {
     _albumRepository = albumRepository;
     _filePathHelper  = filePathHelper;
     _fileService     = fileService;
     _mapper          = mapper;
 }
Exemplo n.º 2
0
 public PhotoService(IFileService fileService,
                     IRepository <Photo> photoRepository,
                     IFilePathHelper filePathHelper,
                     IMapper mapper,
                     IOptions <ImageConfig> imageOptions,
                     ILogger <PhotoService> logger)
 {
     _fileService     = fileService;
     _photoRepository = photoRepository;
     _filePathHelper  = filePathHelper;
     _mapper          = mapper;
     _imageConfig     = imageOptions.Value;
     _logger          = logger;
 }