示例#1
0
 public AccountController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IEmailSender emailSender,
     ILogger <AccountController> logger,
     IDeveloperRepo repo)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _emailSender   = emailSender;
     _logger        = logger;
     _repo          = repo;
 }
示例#2
0
        public GamesController(IDeveloperRepo repo, IOptions <CloudinarySettings> cloudinaryConfig)
        {
            _repo             = repo;
            _cloudinaryConfig = cloudinaryConfig;

            Account account = new Account(
                _cloudinaryConfig.Value.CloudName,
                _cloudinaryConfig.Value.ApiKey,
                _cloudinaryConfig.Value.ApiSecret
                );

            _cloudinary = new Cloudinary(account);

            GameViewModel = new GameViewModel()
            {
                Game  = new Game(),
                Games = _repo.GetGamesSync()
            };
        }
示例#3
0
        public DeveloperController(IDeveloperRepo repo, IOptions <CloudinarySettings> cloudinaryConfig)
        {
            _repo             = repo;
            _cloudinaryConfig = cloudinaryConfig;

            Account acc = new Account(
                _cloudinaryConfig.Value.CloudName,
                _cloudinaryConfig.Value.ApiKey,
                _cloudinaryConfig.Value.ApiSecret
                );

            _cloudinary = new Cloudinary(acc);

            DevViewModel = new DeveloperViewModel()
            {
                Developer     = new Developer(),
                DeveloperList = _repo.GetDevelopersSync()
            };
        }
 public DeveloperService()
 {
     developerRepo = new DeveloperRepo();
 }
 public DeveloperController(IDeveloperRepo repo)
 {
     developerRepo = repo;
 }