public PhotosController(IDatingRepositroy repo, IMapper mapper, IOptions <CloudinarySettings> cloudcnfig) { _repo = repo; _mapper = mapper; _cloudcnfig = cloudcnfig; Account acc = new Account( _cloudcnfig.Value.CloudName, _cloudcnfig.Value.ApiKey, _cloudcnfig.Value.ApiSecret ); _cloudinary = new Cloudinary(acc); }
public MessagesControllers(IDatingRepositroy repo, IMapper mapper) { _repo = repo; _mapper = mapper; }
public UsersController(IDatingRepositroy context, IMapper mapper) { _context = context; _mapper = mapper; }