예제 #1
0
 public AdminController(DataContext cntx, UserManager <User> userManager, IMapper mapper,
                        IOptions <CloudinarySettings> cloudinaryConfgig, IDatingRepository repo)
 {
     _repo        = repo;
     _mapper      = mapper;
     _cntx        = cntx;
     _userManager = userManager;
     _cloudinary  = CloudinaryHelper.GetCloudinaryInstance(cloudinaryConfgig);
 }
예제 #2
0
        public PhotoController(IDatingRepository repo, IMapper mapper, IOptions <CloudinarySettings> cloudinaryConfgig, DataContext cntx)
        {
            _cntx = cntx;
            _cloudinaryConfgig = cloudinaryConfgig;
            _mapper            = mapper;
            _repo = repo;

            _cloudinary = CloudinaryHelper.GetCloudinaryInstance(cloudinaryConfgig);
        }