Exemple #1
0
 public PrizesController(ApplicationDbContext context,
                         FileSavingService fileSaver,
                         UserManager <ApplicationUser> userManager)
 {
     _context     = context;
     _userManager = userManager;
     _fileSaver   = fileSaver;
 }
Exemple #2
0
        public ManageController(
            UserManager <ApplicationUser> userManager,
            SignInManager <ApplicationUser> signInManager,
            IEmailSender emailSender,
            ISmsSender smsSender,
            FileSavingService fileSaver,
            ILoggerFactory loggerFactory)
        {
            _userManager   = userManager;
            _signInManager = signInManager;
            _emailSender   = emailSender;
            _smsSender     = smsSender;
            _logger        = loggerFactory.CreateLogger <ManageController>();

            _fileSaver = fileSaver;
        }