public PhotosController(IDatingRepositary repo, IMapper mapper, IOptions <CloudinarySettings> cloudinaryconfig) { _repo = repo; _mapper = mapper; _cloudinaryconfig = cloudinaryconfig; Account acc = new Account( _cloudinaryconfig.Value.CloudName, _cloudinaryconfig.Value.ApiKey, _cloudinaryconfig.Value.ApiSecret ); _cloudinary = new Cloudinary(acc); }
public MessagesController(IDatingRepositary repo, IMapper mapper) { _mapper = mapper; _repo = repo; }
public UsersController(IDatingRepositary Repo, IMapper mapper) { _mapper = mapper; _repo = Repo; }