public UserController(IAuthRepo authrepo, IConfiguration config, IDatingRepo datingrepo, IMapper mapper) { _authrepo = authrepo; _config = config; _datingrepo = datingrepo; _mapper = mapper; }
// public PhotosController(IDatingRepo repo, IMapper mapper, IOptions<CloudinarySettings>cloudinaryConfig) // { //_cloudinaryConfig = cloudinaryConfig; //_mapper = mapper; //_repo = repo; //Account acc = new Account( // _cloudinaryConfig.Value.CloudName, // _cloudinaryConfig.Value.ApiKey, // _cloudinaryConfig.Value.ApiSecurit // ); //_cloudinary = new Cloudinary(acc); // } public PhotosController(IDatingRepo repo, IMapper mapper) { _mapper = mapper; _repo = repo; Account acc = new Account(Cloud_Name, Api_Key, Api_Securit); _cloudinary = new Cloudinary(acc); }
public PhotosController(IDatingRepo datingrepo, IMapper mapper, IOptions <CloudinarySettings> config) { _datingrepo = datingrepo; _mapper = mapper; _config = config; Account acc = new Account( _config.Value.name, _config.Value.key, _config.Value.secret); _cloudinary = new Cloudinary(acc); }
public PhotosController(IDatingRepo repo, IMapper mapper, IOptions <CloudinarySettings> cloudinaryOptions) { this.repo = repo; this.mapper = mapper; this.cloudinaryOptions = cloudinaryOptions; Account acc = new Account( cloudinaryOptions.Value.CloudName, cloudinaryOptions.Value.ApiKey, cloudinaryOptions.Value.ApiSecret); cloudinary = new Cloudinary(acc); }
public PhotosController(IDatingRepo repo, IMapper mapper, IOptions <CloudinarySettings> coludinaryConfig) { _repo = repo; _mapper = mapper; _coludinaryConfig = coludinaryConfig; Account account = new Account( _coludinaryConfig.Value.CloudName, _coludinaryConfig.Value.ApiKey, _coludinaryConfig.Value.ApiSecret ); _cloudinary = new Cloudinary(account); }
public PhotosController(IDatingRepo repo, IMapper mapper, IOptions<CloudinarySettings> cloudinaryConfig) { this._cloudinaryConfig = cloudinaryConfig; this._mapper = mapper; this._repo = repo; Account acc = new Account( _cloudinaryConfig.Value.CloudName, _cloudinaryConfig.Value.ApiKey, _cloudinaryConfig.Value.ApiSecret ); // creating a cloudinary account _cloudinary = new Cloudinary(acc); }
public PhotoController(IDatingRepo repo, IMapper mapper, IOptions <CloudinarySetting> cloudinary) { _repo = repo; _mapper = mapper; _cloud = cloudinary; var acc = new Account( _cloud.Value.CloudName, _cloud.Value.ApiKey, _cloud.Value.ApiSecret ); _cloudinary = new Cloudinary(acc); }
public MessagesController(IDatingRepo repo, IMapper mapper) { _repo = repo; _mapper = mapper; }
public UsersController(IDatingRepo repo, IMapper mapper) { _repo = repo; _mapper = mapper; }
public UsersController(IDatingRepo datingRepo, IMapper mapper) { this._mapper = mapper; this._datingRepo = datingRepo; }
public UsersController(IDatingRepo repo, IMapper mapper, NewProjectAPIContext context) { _repo = repo; _mapper = mapper; _context = context; }
public UsersController(IDatingRepo repo, IMapper mapper) { this.mapper = mapper; this.repo = repo; }