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); }
public PhotoController(IDatingRepository repo, IMapper mapper, IOptions <CloudinarySettings> cloudinaryConfgig, DataContext cntx) { _cntx = cntx; _cloudinaryConfgig = cloudinaryConfgig; _mapper = mapper; _repo = repo; _cloudinary = CloudinaryHelper.GetCloudinaryInstance(cloudinaryConfgig); }