public SqlDataService(PaylocityDbContext paylocityDbContext)
 {
     DependentsRepository     = new DependentRepository(paylocityDbContext);
     DependentTypesRepository = new DependentTypeRepository(paylocityDbContext);
     EmployeesRepository      = new EmployeeRepository(paylocityDbContext);
     EmployersRepository      = new EmployerRepository(paylocityDbContext);
 }
Пример #2
0
 public async static Task <List <Employee> > GetEmployees(PaylocityDbContext db)
 {
     return(await db.Paylocity_Employees.ToListAsync());
 }
 public EmployeeRepository(PaylocityDbContext paylocityDbContext)
 {
     _paylocityDbContext = paylocityDbContext;
 }
Пример #4
0
 public DependentTypeRepository(PaylocityDbContext paylocityDbContext)
 {
     _paylocityDbContext = paylocityDbContext;
 }
Пример #5
0
 public HomeController(ILogger <HomeController> logger, PaylocityDbContext db)
 {
     _db     = db;
     _logger = logger;
 }