Exemplo n.º 1
0
        public PhotosController(ZawajDbContext context, IMapper mapper, IOptions <CloudinarySettings> cloudinaryConfig)
        {
            _context          = context;
            _mapper           = mapper;
            _cloudinaryConfig = cloudinaryConfig;
            Account account = new Account(
                _cloudinaryConfig.Value.CloudName,
                _cloudinaryConfig.Value.ApiKey,
                _cloudinaryConfig.Value.ApiSecret);

            _cloudinary = new Cloudinary(account);
        }
Exemplo n.º 2
0
        public AdminController(ZawajDbContext context, UserManager <User> userManager, IOptions <CloudinarySettings> cloudinaryConfig)
        {
            _cloudinaryConfig = cloudinaryConfig;
            _userManager      = userManager;
            _context          = context;
            Account acc = new Account(
                _cloudinaryConfig.Value.CloudName,
                _cloudinaryConfig.Value.ApiKey,
                _cloudinaryConfig.Value.ApiSecret
                );

            _cloudinary = new Cloudinary(acc);
        }
Exemplo n.º 3
0
 public ChatHub(ZawajDbContext context)
 {
     _context = context;
 }
Exemplo n.º 4
0
 public PaymentController(ZawajDbContext context, IOptions <StripeSettings> stripeSettings)
 {
     _context        = context;
     _stripeSettings = stripeSettings;
 }
Exemplo n.º 5
0
 public UserActiveActionFilter(UserManager <User> userManager, ZawajDbContext context)
 {
     _userManager = userManager;
     _context     = context;
 }
Exemplo n.º 6
0
 public UsersController(UserManager <User> userManager, ZawajDbContext context, IMapper mapper)
 {
     _userManager = userManager;
     _context     = context;
     _mapper      = mapper;
 }
Exemplo n.º 7
0
 public UserRepo(ZawajDbContext context)
 {
     _context = context;
 }
Exemplo n.º 8
0
 public LikesController(ZawajDbContext context, IMapper mapper)
 {
     _mapper  = mapper;
     _context = context;
 }
Exemplo n.º 9
0
 public ChatController(ZawajDbContext context, IMapper mapper, IHubContext <ChatHub> hub)
 {
     _hub     = hub;
     _mapper  = mapper;
     _context = context;
 }