Пример #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);
        }
Пример #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);
        }
Пример #3
0
 public ChatHub(ZawajDbContext context)
 {
     _context = context;
 }
Пример #4
0
 public PaymentController(ZawajDbContext context, IOptions <StripeSettings> stripeSettings)
 {
     _context        = context;
     _stripeSettings = stripeSettings;
 }
Пример #5
0
 public UserActiveActionFilter(UserManager <User> userManager, ZawajDbContext context)
 {
     _userManager = userManager;
     _context     = context;
 }
Пример #6
0
 public UsersController(UserManager <User> userManager, ZawajDbContext context, IMapper mapper)
 {
     _userManager = userManager;
     _context     = context;
     _mapper      = mapper;
 }
Пример #7
0
 public UserRepo(ZawajDbContext context)
 {
     _context = context;
 }
Пример #8
0
 public LikesController(ZawajDbContext context, IMapper mapper)
 {
     _mapper  = mapper;
     _context = context;
 }
Пример #9
0
 public ChatController(ZawajDbContext context, IMapper mapper, IHubContext <ChatHub> hub)
 {
     _hub     = hub;
     _mapper  = mapper;
     _context = context;
 }