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; }
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); }