Example #1
0
 public AccountController(UserManager <ApplicationUser> userManager,
                          SignInManager <ApplicationUser> signInManager,
                          RoleManager <IdentityRole> roleManager,
                          IHostingEnvironment _hostingEnvironment,
                          IRandomFileName _randomFile)
 {
     _userManager       = userManager;
     _signInManager     = signInManager;
     _roleManager       = roleManager;
     hostingEnvironment = _hostingEnvironment;
     randomFile         = _randomFile;
 }
Example #2
0
 public EmployeeController(PayrollDbContext dbContext, IHostingEnvironment hosting, IRandomFileName randomFileName)
 {
     _payrollDb         = dbContext;
     hostingEnvironment = hosting;
     randomFile         = randomFileName;
 }