Esempio n. 1
0
 public AccountsController(UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IConfiguration configuration, spinedbContext db)
 {
     _userManager            = userManager;
     _signInManager          = signInManager;
     _configuration          = configuration;
     notificationsController = new NotificationsController(_configuration);
     this.db = db;
 }
Esempio n. 2
0
 public EmployeesController(spinedbContext db, SignInManager <ApplicationUser> signInManager, UserManager <ApplicationUser> userManager, IHostingEnvironment env, IConfiguration configuration)
 {
     this.db                 = db;
     _signInManager          = signInManager;
     _userManager            = userManager;
     _env                    = env;
     _configuration          = configuration;
     notificationsController = new NotificationsController(configuration);
     fileController          = new FileUploadController(db, _env);
 }