public PhotosController(Data.IDatingRepository repo, IMapper mapper, IOptions <CloudinarySettings> cloudinarySettings) { _cloudinarySettings = cloudinarySettings; _mapper = mapper; _repo = repo; Account acc = new Account( _cloudinarySettings.Value.CloudName, _cloudinarySettings.Value.ApiKey, _cloudinarySettings.Value.ApiSecret ); _cloudinary = new Cloudinary(acc); }
public UsersController(Data.IDatingRepository repo, IMapper mapper) { _repo = repo; _mapper = mapper; }
public MessagesController(Data.IDatingRepository repo, IMapper mapper) { _mapper = mapper; _repo = repo; }