public CategoriesAdminController(ICategoryRepository repo, IPhotoCategoryRepository repoPhoto, IMapper mapper, IOptions <CloudinarySettings> cloudinaryConfig) { _repo = repo; _repoPhoto = repoPhoto; _mapper = mapper; _cloudinaryConfig = cloudinaryConfig; Account acc = new Account( _cloudinaryConfig.Value.CloudName, _cloudinaryConfig.Value.ApiKey, _cloudinaryConfig.Value.ApiSecret ); _cloudinary = new Cloudinary(acc); }
public PhotoCategoryManager(IPhotoCategoryRepository _repository) { repository = _repository; }
public PhotoAlbumController(IPhotoAlbumRepository photoAlbumRepository, IPhotoCategoryRepository photoCategoryRepository) { _photoAlbumRepository = photoAlbumRepository; _photoCategoryRepository = photoCategoryRepository; }