// Creating a connection to the database public EmployeeController(HolidayTracker.Data.ApplicationDbContext context, UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IEmailSender emailSender ) { _context = context; _userManager = userManager; _signInManager = signInManager; _emailSender = emailSender; }
public RegisterModel( UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, ILogger <RegisterModel> logger, IEmailSender emailSender, HolidayTracker.Data.ApplicationDbContext context) { _userManager = userManager; _signInManager = signInManager; _logger = logger; _emailSender = emailSender; _context = context; }
// Creating a connection to the database public AllowanceController(HolidayTracker.Data.ApplicationDbContext context) { _context = context; }
public IndexModel(HolidayTracker.Data.ApplicationDbContext context) { _context = context; }
// Creating a connection to the database public DepartmentController(HolidayTracker.Data.ApplicationDbContext context) { _context = context; }
public GenderController(HolidayTracker.Data.ApplicationDbContext context) { _context = context; }
public RequestTypeController(HolidayTracker.Data.ApplicationDbContext context) { _context = context; }